[Ocfs2-devel] [PATCH 1/3] fs: Document the reflink(2) system call.

jim owens jowens at hp.com
Tue May 5 16:08:07 PDT 2009


Jamie Lokier wrote:
> But assuming it stays shared until you modify the actual data, could
> the documentation make this important fact a bit more prominent:

>     Opening a file, reading it, read-only or private mappings, and
>     simple attribute updates (chown, chmod, futimes, as well as
>     automatic atime updates) will not trigger copy-on-write and will
>     not return ENOSPC errors.

almost... more like:

     automatic atime updates) will not trigger file data copy-on-write
     and will not return ENOSPC errors unless the filesytem would have
     returned ENOSPC if the file had no reflink.

filesystems such as btrfs that COW metadata changes can
generate ENOSPC on any attribute update!

jim



More information about the Ocfs2-devel mailing list