Miao Xie
198605a8e2
Btrfs: get write access when doing resize fs
...
Steps to reproduce:
# mkfs.btrfs <partition>
# mount -o ro <partition> <mnt0>
# mount -o ro <partition> <mnt1>
# mount -o remount,rw <mnt0>
# umount <mnt0>
# btrfs fi resize 10g <mnt1>
We re-sized a R/O filesystem. The reason is that we just check the R/O flag
of the super block object. It is not enough, because the kernel may set the
R/O flag only for the mount point. We need invoke mnt_want_write_file() to
do a full check.
Signed-off-by: Miao Xie <miaox@cn.fujitsu.com >
Signed-off-by: Chris Mason <chris.mason@fusionio.com >
2012-12-16 20:46:09 -05:00
..
2012-09-18 01:01:35 -07:00
2012-07-25 16:15:07 -04:00
2012-03-22 01:45:34 +01:00
2012-12-12 17:15:27 -05:00
2012-10-25 15:45:16 -04:00
2012-10-01 15:19:06 -04:00
2012-12-12 17:15:40 -05:00
2011-12-21 19:14:09 +01:00
2012-12-12 17:15:40 -05:00
2012-03-22 01:45:34 +01:00
2012-12-12 17:15:24 -05:00
2012-12-12 17:15:44 -05:00
2012-12-12 17:15:28 -05:00
2012-07-23 15:41:40 -04:00
2012-08-28 16:53:38 -04:00
2012-10-01 09:06:36 -07:00
2012-12-12 17:15:41 -05:00
2012-12-12 17:15:41 -05:00
2012-03-22 11:52:54 +01:00
2012-12-12 17:15:42 -05:00
2012-12-12 17:15:28 -05:00
2012-05-29 23:28:33 -04:00
2012-12-12 17:15:40 -05:00
2012-12-12 17:15:34 -05:00
2012-10-04 09:39:58 -04:00
2012-10-04 09:39:58 -04:00
2012-12-12 17:15:39 -05:00
2012-12-12 17:15:21 -05:00
2012-12-12 17:15:28 -05:00
2012-12-16 20:46:06 -05:00
2011-05-06 12:34:03 +02:00
2012-10-09 09:14:45 -04:00
2012-10-09 09:14:45 -04:00
2012-12-11 13:31:31 -05:00
2011-04-25 16:46:11 +08:00
2012-12-12 17:15:40 -05:00
2012-12-16 20:46:09 -05:00
2012-12-16 20:46:06 -05:00
2011-12-21 19:14:16 +01:00
2012-08-28 16:53:23 -04:00
2012-03-22 01:45:34 +01:00
2012-03-20 21:48:21 +08:00
2012-12-12 17:15:41 -05:00
2012-12-11 13:31:30 -05:00
2012-12-12 17:15:19 -05:00
2012-12-11 13:31:38 -05:00
2012-03-22 11:52:54 +01:00
2012-12-12 17:15:38 -05:00
2012-10-25 15:45:43 -04:00
2012-06-14 21:29:16 -04:00
2012-12-12 17:15:43 -05:00
2012-12-12 17:15:28 -05:00
2012-10-08 20:09:02 -04:00
2012-12-12 17:15:43 -05:00
2012-10-25 15:47:31 -04:00
2012-10-04 09:39:55 -04:00
2012-07-23 16:28:06 -04:00
2012-12-12 17:15:42 -05:00
2011-06-17 14:54:18 -04:00
2012-12-16 20:46:08 -05:00
2012-12-11 13:31:31 -05:00
2011-05-02 13:57:22 +02:00
2012-12-12 17:15:22 -05:00
2012-03-22 01:45:34 +01:00
2012-10-01 15:18:53 -04:00
2012-10-01 15:18:53 -04:00
2012-12-12 17:15:45 -05:00
2012-12-12 17:15:42 -05:00
2012-12-16 20:46:07 -05:00
2012-10-09 09:19:57 -04:00