kernel-hacking-2024-linux-s.../fs/ocfs2
Tao Ma a9063ab9a3 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>
2009-09-22 20:09:39 -07:00
..
cluster ocfs2: Add ocfs2_read_refcount_block. 2009-09-22 20:09:26 -07:00
dlm
acl.c
acl.h
alloc.c ocfs2: CoW refcount tree improvement. 2009-09-22 20:09:36 -07:00
alloc.h ocfs2: Add CoW support. 2009-09-22 20:09:36 -07:00
aops.c ocfs2: CoW a reflinked cluster when it is truncated. 2009-09-22 20:09:38 -07:00
aops.h ocfs2: Add CoW support. 2009-09-22 20:09:36 -07:00
blockcheck.c
blockcheck.h
buffer_head_io.c
buffer_head_io.h
dcache.c
dcache.h
dir.c ocfs2: Pass ocfs2_caching_info into ocfs_init_*_extent_tree(). 2009-09-04 16:08:13 -07:00
dir.h
dlmglue.c ocfs2: Add new refcount tree lock resource in dlmglue. 2009-09-22 20:09:28 -07:00
dlmglue.h ocfs2: Add new refcount tree lock resource in dlmglue. 2009-09-22 20:09:28 -07:00
export.c
export.h
extent_map.c ocfs2: Add support for incrementing refcount in the tree. 2009-09-22 20:09:33 -07:00
extent_map.h ocfs2: Add support for incrementing refcount in the tree. 2009-09-22 20:09:33 -07:00
file.c ocfs2: CoW a reflinked cluster when it is truncated. 2009-09-22 20:09:38 -07:00
file.h ocfs2: Integrate CoW in file write. 2009-09-22 20:09:37 -07:00
heartbeat.c
heartbeat.h
inode.c ocfs2: Drop struct inode from ocfs2_extent_tree_operations. 2009-09-04 16:07:57 -07:00
inode.h ocfs2: Drop struct inode from ocfs2_extent_tree_operations. 2009-09-04 16:07:57 -07:00
ioctl.c
ioctl.h
journal.c ocfs2: Add metaecc for ocfs2_refcount_block. 2009-09-22 20:09:26 -07:00
journal.h ocfs2: Decrement refcount when truncating refcounted extents. 2009-09-22 20:09:35 -07:00
Kconfig
localalloc.c
localalloc.h
locks.c
locks.h
Makefile ocfs2: Add ocfs2_read_refcount_block. 2009-09-22 20:09:26 -07:00
mmap.c
mmap.h
namei.c
namei.h
ocfs1_fs_compat.h
ocfs2.h ocfs2: Add functions for extents refcounted. 2009-09-22 20:09:34 -07:00
ocfs2_fs.h ocfs2: Add support for incrementing refcount in the tree. 2009-09-22 20:09:33 -07:00
ocfs2_lockid.h ocfs2: Add new refcount tree lock resource in dlmglue. 2009-09-22 20:09:28 -07:00
ocfs2_lockingver.h
quota.h
quota_global.c
quota_local.c
refcounttree.c ocfs2: handle file attributes issue for reflink. 2009-09-22 20:09:39 -07:00
refcounttree.h ocfs2: CoW a reflinked cluster when it is truncated. 2009-09-22 20:09:38 -07:00
resize.c
resize.h
slot_map.c
slot_map.h
stack_o2cb.c
stack_user.c
stackglue.c
stackglue.h
suballoc.c
suballoc.h
super.c ocfs2: Add refcount tree lock mechanism. 2009-09-22 20:09:29 -07:00
super.h
symlink.c
symlink.h
sysfile.c
sysfile.h
uptodate.c
uptodate.h
ver.c
ver.h
xattr.c ocfs2: Pass ocfs2_caching_info into ocfs_init_*_extent_tree(). 2009-09-04 16:08:13 -07:00
xattr.h