]> git.baikalelectronics.ru Git - kernel.git/commit
nilfs2: deny write access to inodes in snapshots
authorRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Sun, 15 Aug 2010 14:33:57 +0000 (23:33 +0900)
committerRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Sat, 23 Oct 2010 00:24:35 +0000 (09:24 +0900)
commitcda4292d563f2c77c595bc7863e626fd6fd79117
treee0a2c2bfb3edb6b1fa4383cb2d1f52adb653c9e2
parent80f41fb5c970948b98ade40fb4e94a22e87db024
nilfs2: deny write access to inodes in snapshots

Snapshots of nilfs are read-only.

After super block instances (sb) will be unified, nilfs will need to
check write access by a way other than implicit test with
IS_RDONLY(inode).  This is because IS_RDONLY() refers to MS_RDONLY bit
of inode->i_sb->s_flags and it will become inaccurate after the
unification of sb.

To prepare for the issue, this uses i_op->permission to deny write
access to inodes in snapshots.

Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
fs/nilfs2/inode.c
fs/nilfs2/namei.c
fs/nilfs2/nilfs.h