linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Gordan Bobic <gordan@bobich.net>
To: BTRFS MAILING LIST <linux-btrfs@vger.kernel.org>
Subject: Re: hard links across snapshots/subvolumes are actually a bad idea.
Date: Thu, 25 Nov 2010 00:18:53 +0000	[thread overview]
Message-ID: <4CEDAB6D.6090409@bobich.net> (raw)
In-Reply-To: <AANLkTik7u_eexi++vDCsRh0oa74Q4F1Jjzt_mNn+=MZC@mail.gmail.com>

On 11/24/2010 11:57 PM, cwillu wrote:
> On Wed, Nov 24, 2010 at 5:29 PM, Gordan Bobic<gordan@bobich.net>  wrote:
>> On 11/24/2010 10:07 PM, David Nicol wrote:
>>>
>>> I've been thinking about this for a while, from a perspective of how
>>> to make it work by allocating i-node numbers from a global pool, but
>>> yesterday I realized that offering the feature would be a bad idea
>>> because it violates the semantics of file systems.
>>>
>>> I will be happy to expand on that point if anyone disagrees with it.
>>
>> One thing I would like to see is copy-on-write hard-links. The hard-links
>> that span snapshots should be possible, but they should be copy-on-write,
>> i.e. as soon as hard-linked file that spans snapshots is written, the
>> snapshot that wrote it should have it's own forked copy henceforth.
>
> There are sym-links, hard-links, and ref-links.  Cross device symlinks
> are trivial.  Cross device hardlinks are evil.  Cross device ref-links
> are just plain smart (and are at least partitially implemented in
> btrfs;  does bcp work across subvolumes?).  :)

Last time I asked a similar question, there was no equivalent thing to 
COW hard-links, across snapshots or otherwise. Hard-links spanning 
physical devices don't make sense. Hard-links spanning snapshots, 
however, do. In fact, I would intuitively expect that a snapshot 
contains only COW hard-links which would get COW-ed from both the head 
and the snapshot.

Gordan

  reply	other threads:[~2010-11-25  0:18 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-24 22:07 hard links across snapshots/subvolumes are actually a bad idea David Nicol
2010-11-24 22:47 ` Erik Logtenberg
2010-11-24 23:29 ` Gordan Bobic
2010-11-24 23:57   ` cwillu
2010-11-25  0:18     ` Gordan Bobic [this message]
2010-11-25  0:31       ` cwillu
2010-11-25  8:00         ` Gordan Bobic
2010-11-25  9:36           ` David Nicol
  -- strict thread matches above, loose matches on Subject: below --
2010-11-25 13:48 Tomasz Chmielewski

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=4CEDAB6D.6090409@bobich.net \
    --to=gordan@bobich.net \
    --cc=linux-btrfs@vger.kernel.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;
as well as URLs for NNTP newsgroup(s).