]> git.hungrycats.org Git - linux/commitdiff
btrfs: device delete must be sysloged
authorAnand Jain <Anand.Jain@oracle.com>
Mon, 30 Jun 2014 16:58:57 +0000 (00:58 +0800)
committerZygo Blaxell <zblaxell@serenity.furryterror.org>
Wed, 3 Dec 2014 15:16:08 +0000 (10:16 -0500)
as in the disk add patch, disk detached from the volume must be
recorded in the syslog as well for the same reason.

Signed-off-by: Anand Jain <Anand.Jain@oracle.com>
Reviewed-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <clm@fb.com>
(cherry picked from commit ec95d4917b9b5e9c73fd21294f4ff51f3127b5e7)

fs/btrfs/ioctl.c

index d915f4e5fc534b8af38b4283299c317d926c09f4..cf130e3371dafa888bc55a1ee5c0bcaa517c22e1 100644 (file)
@@ -2712,6 +2712,9 @@ static long btrfs_ioctl_rm_dev(struct file *file, void __user *arg)
        mutex_unlock(&root->fs_info->volume_mutex);
        atomic_set(&root->fs_info->mutually_exclusive_operation_running, 0);
 
+       if (!ret)
+               btrfs_info(root->fs_info, "disk deleted %s",vol_args->name);
+
 out:
        kfree(vol_args);
 err_drop: