[go: up one dir, main page]

lkml.org 
[lkml]   [2013]   [Sep]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: Copy on write hard links?
From
Date
Am Mittwoch, den 25.09.2013, 08:59 -0500 schrieb Rob Landley:
> On 09/24/2013 01:36:56 PM, Thomas Meyer wrote:
> > Hi,
> >
> > Is there such a thing?
>
> In the kernel's vfs layer?

Yes, that would be a nice feature!

> No, although some filesystems (ala btrfs) do
> things like that with snapshots.
>
> In userspace? Breaking hardlinks when updating a file is fairly normal,
> that's why they distinguish between "truncate and rewrite" (preserve
> hardlinks) and "write new file and rename over old file" (break
> hardlinks, avoiding the more obvious race conditions).

so every user space application needs to implement that for itself?
I wonder how hard it would be to implement this on vfs layer? linkat()
with a new flag as api or something like that.

>
> Rob




\
 
 \ /
  Last update: 2013-09-25 17:01    [from the cache]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and my Meterkast|Read the blog