commit | 70bc7088aaedd7260fcdc18ecebc60881771acb3 | [log] [tgz] |
---|---|---|
author | Anand Jain <anand.jain@oracle.com> | Fri Jan 04 13:31:53 2019 +0800 |
committer | David Sterba <dsterba@suse.com> | Mon Feb 25 14:13:23 2019 +0100 |
tree | aa56e91be575a37b4387b1e004955f17360a6664 | |
parent | e4319cd9cacef80a2d289f235b939ab8bd614683 [diff] |
btrfs: refactor btrfs_free_stale_devices() to get return value Preparatory patch to add ioctl that allows to forget a device (ie. reverse of scan). Refactors btrfs_free_stale_devices() to obtain return status. As this function can fail if it can't find the given path (returns -ENOENT) or trying to delete a mounted device (returns -EBUSY). Signed-off-by: Anand Jain <anand.jain@oracle.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>