All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Masover <ninja@slaphack.com>
To: Lexington Luthor <Lexington.Luthor@gmail.com>
Cc: reiserfs-list@namesys.com
Subject: Re: COW files
Date: Sat, 29 Oct 2005 14:30:40 +0000	[thread overview]
Message-ID: <43638790.9000500@slaphack.com> (raw)
In-Reply-To: <djvum7$6d7$1@sea.gmane.org>

Lexington Luthor wrote:
> David Masover wrote:
> 
>> Gregory Maxwell wrote:
>>
>>> Files could be COWed by a flag on the cp command (or really, perhaps
>>> that should be the default behavior) or with a utility (perhaps run as
>>> a periodic script to locate duplicates and COW them. This would
>>> greatly speed up the process of copying files.
>>
>>
>> Should be on the cp command, but you have to change the cp source for
>> that, and everything implementing "copy", including desktop managers.
>> There's currently no "copy" system call.  So it's more than just a
>> plugin.
>>
> 
> I would love something like this for entire directory trees. Perhaps
> with a reiser4 specific tool that does a COW cp -al.

Ok, are you talking about making all the files COW, or the directory
structure itself somehow COW?

Because if someone patched "cp" to do COW files, I'm sure it would also
work for "cp -a", which would be about as fast as "cp -al".

I'm not sure how it'd work to make entire directories COW -- that is,
"cp -a" is as fast as "ln" of a single file.


And before anyone from LKML gets any funny ideas, there's no reason why
COW should be Reiser4 specific.  We've been due a "copy" system call for
at least a decade.  Why not just add that, with the realization that
POSIX would be brain-dead not to add support for it later, then make it
COW for FS-es that support it, and a simple copy for FS-es that don't.

With any luck, not a line of any non-COW FS need be changed to support
the copy system call, unless they want to add COW support as well.

And if you think it's bad copying a couple of gigs around on a local
hard disk, wishing it could copy-on-write, try an NFS mount over a
(very) long-distance VPN.  Why should cp send a couple of gigs across a
network and back, when the machine running the "cp" command never needs
to see it?

  reply	other threads:[~2005-10-29 14:30 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-29  8:01 COW files Gregory Maxwell
2005-10-29 12:33 ` David Masover
2005-10-29 13:49   ` Lexington Luthor
2005-10-29 14:30     ` David Masover [this message]
2005-10-29 15:22       ` Lexington Luthor
2005-10-29 16:13 ` Hans Reiser

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=43638790.9000500@slaphack.com \
    --to=ninja@slaphack.com \
    --cc=Lexington.Luthor@gmail.com \
    --cc=reiserfs-list@namesys.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.