lkml.org 
[lkml]   [2013]   [Sep]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Copy on write hard links?
On 09/24/2013 01:36:56 PM, Thomas Meyer wrote:
> Hi,
>
> Is there such a thing?

In the kernel's vfs layer? 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).

Rob

\
 
 \ /
  Last update: 2013-09-25 16:21    [W:0.135 / U:0.384 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site