diff options
author | Tao Ma <tao.ma@oracle.com> | 2009-08-17 23:47:56 -0400 |
---|---|---|
committer | Joel Becker <joel.becker@oracle.com> | 2009-09-22 23:09:49 -0400 |
commit | 0fe9b66c65f3ff227da45381afe7612f91e32740 (patch) | |
tree | 14d95c15065419825adb4f0f0a26a5416a64259e /fs/ocfs2/xattr.h | |
parent | bc13d347574fc0a8a666bc0f4cc2b635d202e372 (diff) |
ocfs2: Add preserve to reflink.
reflink has 2 options for the destination file:
1. snapshot: reflink will attempt to preserve ownership, permissions,
and all other security state in order to create a full snapshot.
2. new file: it will acquire the data extent sharing but will see the
file's security state and attributes initialized as a new file.
So add the option to ocfs2.
Signed-off-by: Tao Ma <tao.ma@oracle.com>
Diffstat (limited to 'fs/ocfs2/xattr.h')
-rw-r--r-- | fs/ocfs2/xattr.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/ocfs2/xattr.h b/fs/ocfs2/xattr.h index 4f913053d5ee..08e36389f56d 100644 --- a/fs/ocfs2/xattr.h +++ b/fs/ocfs2/xattr.h | |||
@@ -93,5 +93,8 @@ int ocfs2_xattr_attach_refcount_tree(struct inode *inode, | |||
93 | int ocfs2_reflink_xattrs(struct inode *old_inode, | 93 | int ocfs2_reflink_xattrs(struct inode *old_inode, |
94 | struct buffer_head *old_bh, | 94 | struct buffer_head *old_bh, |
95 | struct inode *new_inode, | 95 | struct inode *new_inode, |
96 | struct buffer_head *new_bh); | 96 | struct buffer_head *new_bh, |
97 | bool preserve_security); | ||
98 | int ocfs2_init_security_and_acl(struct inode *dir, | ||
99 | struct inode *inode); | ||
97 | #endif /* OCFS2_XATTR_H */ | 100 | #endif /* OCFS2_XATTR_H */ |