diff options
author | Anand Jain <Anand.Jain@oracle.com> | 2014-07-01 00:58:57 +0800 |
---|---|---|
committer | Chris Mason <clm@fb.com> | 2014-09-17 13:37:23 -0700 |
commit | ec95d4917b9b5e9c73fd21294f4ff51f3127b5e7 (patch) | |
tree | a7fcd8ae7b2a134ee52b77a474ceff47569e8746 /fs/btrfs/ioctl.c | |
parent | 43d207616886da1d93623ac40bd1d922a79e0d1b (diff) | |
download | linux-ec95d4917b9b5e9c73fd21294f4ff51f3127b5e7.tar.gz linux-ec95d4917b9b5e9c73fd21294f4ff51f3127b5e7.tar.bz2 linux-ec95d4917b9b5e9c73fd21294f4ff51f3127b5e7.zip |
btrfs: device delete must be sysloged
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>
Diffstat (limited to 'fs/btrfs/ioctl.c')
-rw-r--r-- | fs/btrfs/ioctl.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c index aa73884025b3..e5ed222267ee 100644 --- a/fs/btrfs/ioctl.c +++ b/fs/btrfs/ioctl.c @@ -2675,6 +2675,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: |