On Wed, Aug 26, 2015 at 05:04:23PM +0800, Zhao Lei wrote: > We can use open_btrfs_dir() to check whether target dir is > in btrfs's mount point before open, instead of checking it in kernel > space of ioctl, and return fuzzy error message. > > Before patch: > # (/mnt/tmp is not btrfs mountpoint) > # > # btrfs device add -f /dev/sda13 /mnt/tmp > ERROR: error adding the device '/dev/sda13' - Inappropriate ioctl for device > # > > After patch: > # btrfs device add -f /dev/sda13 /mnt/tmp > ERROR: not btrfs filesystem: /mnt/tmp > # > > Similar fix for device remove and device usage. > > Signed-off-by: Zhao Lei <zhaolei@xxxxxxxxxxxxxx> Applied, thanks. -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html
