Project

General

Profile

Cleanup #2023

btrfs: Use btrfs device scan instead of btrfsctl -a

Added by Wido den Hollander about 12 years ago. Updated about 12 years ago.

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

Revision a414fd51 (diff)
Added by Sage Weil about 12 years ago

init-ceph, mkcephfs: try 'btrfs device scan' before 'btrfsctl -a'

Fixes: #2023
Reported-by: Wido den Hollander <>
Signed-off-by: Sage Weil <>

History

#1 Updated by Sage Weil about 12 years ago

  • Status changed from New to Resolved

Also available in: Atom PDF