search for: dev_replace

Displaying 2 results from an estimated 2 matches for "dev_replace".

2013 Oct 16
3
trivial cleanups
Hi gang, Here''s some trivial cleanups that I''ve built up while reading through the code. They''ve been run through xfstests -g quick. - z -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
2013 Mar 02
1
[PATCH] btrfs: return EPERM in btrfs_rm_device()
..._devices <= 2) { printk(KERN_ERR "btrfs: unable to go below two " "devices on raid1\n"); - ret = -EINVAL; + ret = -EPERM; goto out; } @@ -1449,14 +1449,14 @@ int btrfs_rm_device(struct btrfs_root *root, char *device_path) if (device->is_tgtdev_for_dev_replace) { pr_err("btrfs: unable to remove the dev_replace target dev\n"); - ret = -EINVAL; + ret = -EPERM; goto error_brelse; } if (device->writeable && root->fs_info->fs_devices->rw_devices == 1) { printk(KERN_ERR "btrfs: unable to remove the only write...