diff options
author | Li Zefan <lizf@cn.fujitsu.com> | 2011-12-07 20:08:40 -0500 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2011-12-08 08:55:46 -0500 |
commit | a5d16333612718569ffd26064270e535cb9c3928 (patch) | |
tree | 8c91371ea5f77630ce3683bf4971bd3e6012cd0c /fs/locks.c | |
parent | 274bd4fb3ed6b72c1d77ef8850511f09fc6b8e4d (diff) | |
download | linux-a5d16333612718569ffd26064270e535cb9c3928.tar.bz2 |
Btrfs: check if the to-be-added device is writable
If we call ioctl(BTRFS_IOC_ADD_DEV) directly, we'll succeed in adding
a readonly device to a btrfs filesystem, and btrfs will write to
that device, emitting kernel errors:
[ 3109.833692] lost page write due to I/O error on loop2
[ 3109.833720] lost page write due to I/O error on loop2
...
Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/locks.c')
0 files changed, 0 insertions, 0 deletions