Cleanup #2023
btrfs: Use btrfs device scan instead of btrfsctl -a
Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
common
Target version:
-
% Done:
0%
Tags:
Backport:
Reviewed:
Affected Versions:
Pull request ID:
Description
I justed upgraded my btrfs userland tools and saw:
root@atom0:~# btrfsctl -a ** ** WARNING: this program is considered deprecated ** Please consider to switch to the btrfs utility ** Scanning for Btrfs filesystems root@atom0:~#
In the init script and the mkcephfs script the btrfsctl binary is called.
We could do a check? If the btrfs binary is available use that one, otherwise fall back on btrfsctl?
Associated revisions
init-ceph, mkcephfs: try 'btrfs device scan' before 'btrfsctl -a'
Fixes: #2023
Reported-by: Wido den Hollander <wido@widodh.nl>
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
History
#1 Updated by Sage Weil almost 12 years ago
- Status changed from New to Resolved