Liu Bo
9ba1f6e44e
Btrfs: do not do balance in readonly mode
...
In normal cases, we would not be allowed to do balance in RO mode.
However, when we're using a seeding device and adding another device to sprout,
things will change:
$ mkfs.btrfs /dev/sdb7
$ btrfstune -S 1 /dev/sdb7
$ mount /dev/sdb7 /mnt/btrfs -o ro
$ btrfs fi bal /mnt/btrfs -----------------------> fail.
$ btrfs dev add /dev/sdb8 /mnt/btrfs
$ btrfs fi bal /mnt/btrfs -----------------------> works!
It should not be designed as an exception, and we'd better add another check for
mnt flags.
Signed-off-by: Liu Bo <liubo2009@cn.fujitsu.com>
Reviewed-by: Josef Bacik <josef@redhat.com>
2012-05-30 10:23:35 -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-04-18 19:22:23 +02:00
2012-03-27 14:51:21 +02:00
2012-05-30 10:23:27 -04:00
2012-05-11 10:56:40 -04:00
2011-12-21 19:14:09 +01:00
2009-01-06 09:38:55 -05:00
2012-04-13 19:41:27 -07:00
2012-03-22 01:45:34 +01:00
2012-05-11 10:56:37 -04:00
2012-04-28 09:30:07 -07:00
2012-05-30 10:23:27 -04:00
2011-07-26 16:49:47 -07:00
2012-03-22 01:45:34 +01:00
2012-01-04 16:12:48 +01:00
2012-03-22 11:52:54 +01:00
2012-05-30 10:23:33 -04:00
2012-05-06 07:23:47 -04:00
2012-03-22 11:52:54 +01:00
2008-09-25 11:04:06 -04:00
2012-05-30 10:23:34 -04:00
2012-05-30 10:23:33 -04:00
2011-08-01 14:30:50 -04:00
2012-02-15 16:40:25 +01:00
2012-05-11 10:56:41 -04:00
2012-03-30 12:44:29 -07:00
2012-05-30 10:23:29 -04:00
2012-05-30 10:23:33 -04:00
2011-05-06 12:34:03 +02:00
2009-06-10 11:29:53 -04: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-05-30 10:23:33 -04:00
2012-05-30 10:23:35 -04:00
2012-05-04 15:16:06 -04:00
2011-12-21 19:14:16 +01:00
2012-03-22 01:45:34 +01: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-05-30 10:23:33 -04:00
2012-05-30 10:23:33 -04:00
2012-03-22 11:52:54 +01:00
2011-10-20 18:10:50 +02:00
2008-09-25 11:03:56 -04:00
2012-04-18 19:12:44 +02:00
2012-04-27 13:55:14 -04:00
2012-03-22 11:52:54 +01:00
2012-05-06 10:20:07 -07:00
2012-03-26 17:04:23 -04:00
2012-05-30 10:23:32 -04:00
2011-06-17 14:54:18 -04:00
2012-04-18 19:22:14 +02:00
2012-03-22 01:45:40 +01:00
2011-05-02 13:57:22 +02:00
2012-05-06 07:23:47 -04:00
2012-03-22 01:45:34 +01:00
2012-05-30 10:23:30 -04:00
2012-05-30 10:23:30 -04:00
2008-09-25 15:41:59 -04:00
2012-05-30 10:23:34 -04:00
2012-03-22 01:45:34 +01:00
2012-05-30 10:23:27 -04:00
2011-02-01 11:12:29 -05:00
2012-03-20 21:48:21 +08:00