diff options
author | Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp> | 2011-01-20 02:09:53 +0900 |
---|---|---|
committer | Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp> | 2011-03-08 14:58:29 +0900 |
commit | b253a3e4f2b8eed69b804952ef926df0ac788595 (patch) | |
tree | fc111c5401f15cd5421fc73372d3f4589716af4f /fs/nilfs2/ioctl.c | |
parent | 32f4aeb31583a85c1e9a5d6d485055c090cebbfb (diff) | |
download | op-kernel-dev-b253a3e4f2b8eed69b804952ef926df0ac788595.zip op-kernel-dev-b253a3e4f2b8eed69b804952ef926df0ac788595.tar.gz |
nilfs2: tighten restrictions on inode flags
Nilfs has few rectrictions on which flags may be set on which inodes
like ext2/3/4 filesystems used to be. Specifically DIRSYNC may only
be set on directories and IMMUTABLE and APPEND may not be set on
links. Tighten that to disallow TOPDIR being set on non-directories
and only NODUMP and NOATIME to be set on non-regular file,
non-directories.
This introduces a flags masking function like those of extN and uses
it during inode creation.
Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Diffstat (limited to 'fs/nilfs2/ioctl.c')
0 files changed, 0 insertions, 0 deletions