diff options
author | Tao Ma <tao.ma@oracle.com> | 2009-08-18 05:40:59 +0200 |
---|---|---|
committer | Joel Becker <joel.becker@oracle.com> | 2009-09-23 05:09:39 +0200 |
commit | a9063ab9a3827483007124bdb6f9877f0ab4c3f5 (patch) | |
tree | 78afcc391daf9d66df5bf34b207aa8e9c53ca7d6 /fs/ocfs2/xattr.c | |
parent | ocfs2: Add normal functions for reflink a normal file's extents. (diff) | |
download | linux-a9063ab9a3827483007124bdb6f9877f0ab4c3f5.tar.xz linux-a9063ab9a3827483007124bdb6f9877f0ab4c3f5.zip |
ocfs2: handle file attributes issue for reflink.
A reflink creates a snapshot of a file, that means the attributes
must be identical except for three exceptions - nlink, ino, and ctime.
As for time changes, Here is a brief description:
1. Source file:
1) atime: Ignore. Let the lazy atime code handle that.
2) mtime: don't touch.
3) ctime: If we change the tree (adding REFCOUNTED to at least one
extent), update it.
2. Destination file:
1) atime: ignore.
2) mtime: we want it to appear identical to the source.
3) ctime: update.
The idea here is that an ls -l will show the same time for the
src and target - it shows mtime. Backup software like rsync and tar
will treat the new file correctly too.
Signed-off-by: Tao Ma <tao.ma@oracle.com>
Diffstat (limited to 'fs/ocfs2/xattr.c')
0 files changed, 0 insertions, 0 deletions