From: Liu Bo Date: Thu, 10 May 2012 10:10:38 +0000 (+0800) Subject: Btrfs: fix wrong error returned by adding a device X-Git-Tag: v3.5-rc1~17^2~1^2~17 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f8c5d0b443ff87c43ba690fa2b5bd2c9387d8624;p=pandora-kernel.git Btrfs: fix wrong error returned by adding a device Reproduce: $ mkfs.btrfs /dev/sdb7 $ mount /dev/sdb7 /mnt/btrfs -o ro $ btrfs dev add /dev/sdb8 /mnt/btrfs ERROR: error adding the device '/dev/sdb8' - Invalid argument Since we mount with readonly options, and /dev/sdb7 is not a seeding one, a readonly notification is preferred. Signed-off-by: Liu Bo Reviewed-by: Josef Bacik --- Reading git-diff-tree failed