public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: William Hubbs <williamh@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Subject: Re: [gentoo-dev] rfc: usrmerge script
Date: Wed, 24 Mar 2021 13:37:19 -0500	[thread overview]
Message-ID: <YFuG369vKRaBlgwW@linux1.home> (raw)
In-Reply-To: <CAGfcS_m05s6XmrTqC=7ownG+=zAPn5WYNMZx_Dub6ahmeFegag@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1298 bytes --]

On Wed, Mar 24, 2021 at 01:09:52PM -0400, Rich Freeman wrote:
> On Wed, Mar 24, 2021 at 11:09 AM William Hubbs <williamh@gentoo.org> wrote:
> >
> > On Wed, Mar 24, 2021 at 08:48:41AM +0100, Michał Górny wrote:
> > >
> > > What really can help is reflinking on filesystems supporting that.
> >
> > What really can help is more info instead of being terse like this.
> > Which filesystems support it?
> >
> 
> According to Google right now: Btrfs, CIFS, NFS 4.2, OCFS2, overlayfs, and XFS
> 
> Lizardfs ought to, but doesn't currently.  zfs does not because clones
> only are supported at the dataset level.
> 
> In any case, if you're using coreutils cp to do the copy, just pass
> --reflink=auto.  Honestly, I have no idea why this isn't the default
> behavior.  Who wouldn't want instant copy operations that consume zero
> space (aside from metdata)?  If you're doing this in C or some other
> language you would need to see if they have a library call to do it
> easily - see man ioctl_ficlone.

I'm using busybox, and I just checked and it also supports the
--reflink=auto switch.

I thought about coreutils, but with everything on the fs being moved
around, I think that would get messy.

Thanks a lot for the info Rich. :-)

William

> 
> -- 
> Rich
> 

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]

      reply	other threads:[~2021-03-24 18:37 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-21 17:39 [gentoo-dev] rfc: usrmerge script William Hubbs
2021-03-21 18:00 ` Matthias Maier
2021-03-21 19:08   ` Luigi Mantellini
2021-03-21 19:27     ` William Hubbs
2021-03-21 19:22   ` William Hubbs
2021-03-23  9:23 ` Michał Górny
2021-03-24  5:20   ` William Hubbs
2021-03-24  7:48     ` Michał Górny
2021-03-24 15:09       ` William Hubbs
2021-03-24 17:09         ` Rich Freeman
2021-03-24 18:37           ` William Hubbs [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=YFuG369vKRaBlgwW@linux1.home \
    --to=williamh@gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox