Liu Bo
b9ca0664dc
Btrfs: do not set subvolume flags in readonly mode
...
$ mkfs.btrfs /dev/sdb7
$ btrfstune -S1 /dev/sdb7
$ mount /dev/sdb7 /mnt/btrfs
mount: block device /dev/sdb7 is write-protected, mounting read-only
$ btrfs dev add /dev/sdb8 /mnt/btrfs/
Now we get a btrfs in which mnt flags has readonly but sb flags does
not. So for those ioctls that only check sb flags with MS_RDONLY, it
is going to be a problem.
Setting subvolume flags is such an ioctl, we should use mnt_want_write_file()
to check RO flags.
Signed-off-by: Liu Bo <liubo2009@cn.fujitsu.com>
2012-07-23 16:27:58 -04:00
..
2012-05-30 10:23:27 -04:00
2012-03-22 01:45:34 +01:00
2012-03-22 01:45:34 +01:00
2012-06-27 16:34:39 +02:00
2012-05-30 15:17:34 +02:00
2012-06-14 21:30:54 -04:00
2012-06-14 21:29:16 -04:00
2011-12-21 19:14:09 +01:00
2012-04-13 19:41:27 -07:00
2012-03-22 01:45:34 +01:00
2012-06-27 16:34:40 +02:00
2012-06-21 13:41:07 -07:00
2012-07-23 15:41:40 -04:00
2012-07-23 15:41:40 -04:00
2012-05-30 18:18:21 +02:00
2012-05-30 18:18:21 +02:00
2012-03-22 11:52:54 +01:00
2012-07-23 16:27:53 -04:00
2012-05-30 10:23:39 -04:00
2012-05-29 23:28:33 -04:00
2012-07-02 15:39:18 -04:00
2012-05-31 16:49:53 -04:00
2011-08-01 14:30:50 -04:00
2012-02-15 16:40:25 +01:00
2012-07-23 16:27:55 -04:00
2012-07-23 16:27:55 -04:00
2012-07-05 13:06:25 -07:00
2012-07-05 13:06:25 -07:00
2011-05-06 12:34:03 +02:00
2012-03-28 20:31:37 -04:00
2012-03-29 09:57:44 -04:00
2011-04-25 16:46:11 +08:00
2012-07-23 16:27:55 -04:00
2012-07-23 16:27:58 -04:00
2012-07-23 16:27:42 -04:00
2011-12-21 19:14:16 +01:00
2012-07-23 15:36:18 -04:00
2012-03-22 01:45:34 +01:00
2012-03-20 21:48:21 +08:00
2012-01-16 15:27:58 -05:00
2012-06-14 21:30:54 -04:00
2012-05-30 10:23:33 -04:00
2012-03-22 11:52:54 +01:00
2012-05-30 10:23:41 -04:00
2012-06-14 21:29:16 -04:00
2012-05-30 10:23:43 -04:00
2012-07-23 16:27:53 -04:00
2012-03-22 11:52:54 +01:00
2012-06-14 21:29:16 -04:00
2012-03-26 17:04:23 -04:00
2012-07-23 16:27:42 -04:00
2011-06-17 14:54:18 -04:00
2012-07-23 16:27:55 -04:00
2012-07-23 16:27:55 -04:00
2011-05-02 13:57:22 +02:00
2012-07-23 16:27:54 -04:00
2012-03-22 01:45:34 +01:00
2012-05-31 16:49:53 -04:00
2012-05-31 16:49:53 -04:00
2012-07-23 16:27:42 -04:00
2012-07-23 16:27:42 -04:00
2012-05-30 10:23:27 -04:00
2012-03-20 21:48:21 +08:00