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-03-28 09:58:38 -07:00
2012-03-20 21:29:35 -04:00
2012-03-20 21:29:35 -04:00
2012-03-21 13:36:41 -07:00
2012-04-29 13:30:08 -07:00
2012-03-20 21:29:35 -04:00
2012-03-20 21:29:35 -04:00
2012-05-30 10:23:35 -04:00
2012-03-20 21:29:41 -04:00
2012-03-28 10:01:29 -07:00
2012-05-03 22:47:39 -05:00
2012-03-28 18:30:03 +01:00
2012-03-20 21:29:48 -04:00
2012-03-21 13:36:41 -07:00
2012-04-05 15:25:50 -07:00
2012-03-21 13:36:41 -07:00
2012-04-23 18:22:42 -07:00
2012-03-20 21:29:49 -04:00
2012-03-20 21:29:35 -04:00
2012-03-28 20:04:27 -07:00
2012-03-31 16:03:16 -04:00
2012-03-31 16:03:16 -04:00
2012-04-23 19:52:00 -07:00
2012-03-23 16:58:40 -07:00
2012-03-20 21:29:35 -04:00
2011-07-21 10:59:16 -07:00
2012-04-18 17:29:05 -07:00
2012-04-24 13:26:50 +01:00
2012-03-20 21:29:35 -04:00
2012-05-04 17:11:24 -07:00
2012-03-27 18:29:53 -07:00
2012-03-20 21:29:35 -04:00
2012-03-20 21:29:35 -04:00
2012-04-25 21:26:34 -07:00
2012-03-20 21:29:35 -04:00
2012-03-21 10:15:51 -07:00
2012-04-23 21:43:41 -04:00
2012-03-30 17:31:56 -07:00
2012-03-20 21:29:48 -04:00
2012-04-13 13:50:52 -04:00
2012-03-21 13:36:41 -07:00
2012-03-21 13:36:41 -07:00
2012-03-28 18:30:03 +01:00
2012-04-30 12:04:58 -04:00
2012-04-30 12:28:48 -07:00
2012-03-21 13:36:41 -07:00
2011-11-26 19:58:47 -08:00
2012-03-23 16:58:31 -07:00
2012-03-21 13:36:41 -07:00
2012-04-13 12:31:43 -04:00
2012-03-20 21:29:35 -04:00
2012-03-20 21:29:35 -04:00
2012-04-25 21:26:34 -07:00
2012-04-05 15:30:34 -07:00
2012-03-20 21:29:52 -04:00
2012-03-20 21:29:38 -04:00
2012-03-28 10:00:14 -07:00
2012-03-20 21:29:37 -04:00
2012-03-28 15:58:21 -07:00
2012-03-30 17:31:56 -07:00
2012-03-28 18:05:54 -07:00
2012-04-10 14:48:51 -07:00
2012-03-20 21:29:35 -04:00
2012-03-23 09:27:40 -07:00
2012-03-28 10:00:14 -07:00
2012-03-28 18:30:03 +01:00
2012-03-28 15:58:21 -07:00
2012-04-21 01:58:20 -04:00
2012-03-20 21:29:45 -04:00
2012-02-28 19:31:58 -05:00
2012-02-28 19:31:58 -05:00
2012-04-20 17:29:13 -07:00
2012-04-20 17:29:13 -07:00
2012-04-20 17:29:13 -07:00
2012-03-20 21:29:46 -04:00
2012-04-20 17:29:13 -07:00
2012-03-23 16:58:31 -07:00
2012-03-20 21:29:46 -04:00
2012-04-20 17:29:13 -07:00
2012-03-20 21:48:21 +08:00
2012-02-28 19:31:58 -05:00
2012-03-23 16:58:31 -07:00
2012-04-25 21:26:33 -07:00
2011-12-13 11:18:17 -08:00
2012-03-24 10:24:31 -07:00
2012-03-29 18:12:23 -07:00
2012-05-03 14:01:40 -07:00
2012-02-28 19:31:58 -05:00
2012-02-23 15:56:21 -08:00
2012-02-28 19:31:58 -05:00
2012-04-25 21:26:33 -07:00
2012-04-04 10:04:42 -07:00
2012-02-19 10:30:52 -08:00
2012-01-06 23:16:53 -05:00
2012-03-20 21:29:32 -04:00
2012-03-29 18:12:23 -07:00
2012-01-03 22:52:39 -05:00
2012-03-24 10:24:31 -07:00
2012-03-28 10:07:27 -07:00
2011-08-01 02:10:06 -04:00
2012-03-20 21:29:51 -04:00
2012-01-06 23:20:12 -05:00
2012-02-28 19:31:58 -05:00
2012-02-07 07:51:30 +01:00
2012-03-21 13:36:41 -07:00
2012-01-10 16:30:51 -08:00
2012-04-09 01:39:22 -04:00
2012-04-01 13:54:27 -05:00
2012-03-20 21:29:38 -04:00
2012-01-06 23:20:12 -05:00
2012-02-28 19:31:58 -05:00
2012-05-03 14:01:40 -07:00
2012-01-08 13:21:22 -08:00
2012-02-19 10:30:52 -08:00
2012-04-29 13:12:42 -07:00
2012-01-03 22:57:11 -05:00
2012-01-03 22:57:11 -05:00
2012-02-28 19:31:58 -05:00
2012-01-06 23:19:54 -05:00
2012-02-28 19:31:58 -05:00
2012-02-28 19:31:58 -05:00
2012-03-29 18:12:23 -07:00
2012-03-24 10:24:31 -07:00
2012-02-24 11:42:50 -08:00
2012-04-05 19:04:27 -04:00
2012-02-28 19:31:58 -05:00
2012-03-24 10:24:31 -07:00
2012-02-28 19:31:58 -05:00
2012-03-24 10:24:31 -07:00
2012-02-28 19:31:58 -05:00
2012-02-28 19:31:58 -05:00
2012-04-05 15:25:50 -07:00