All of lore.kernel.org
 help / color / mirror / Atom feed
From: Lexington Luthor <Lexington.Luthor@gmail.com>
To: reiserfs-list@namesys.com
Subject: Re: COW files
Date: Sat, 29 Oct 2005 16:22:27 +0100	[thread overview]
Message-ID: <dk043k$jbo$1@sea.gmane.org> (raw)
In-Reply-To: <43638790.9000500@slaphack.com>

David Masover wrote:
> 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?
> 

I would not mind this being reiser4 specific, I don't use the archaic 
filesystems much, they are far too slow compared to reiser4.

As for the exact semantics of COW, whether it applies to file or to 
entire directories, I don't really care as long as it is fast. At the 
moment, the userspace library makes things very fast, but very 
inconvenient since I need to spawn a new shell in the hard-linked tree, 
and while screen + zsh and its history sharing makes that bearable, its 
still a PITA.

LL


  reply	other threads:[~2005-10-29 15:22 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
2005-10-29 15:22       ` Lexington Luthor [this message]
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='dk043k$jbo$1@sea.gmane.org' \
    --to=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.