mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2025-04-06 17:49:11 +03:00
Fix libblkid ZFS detection when making new pools
zfsonlinux/zfs@1db7b9be75 should have fixed this, but this particular string was overlooked. Signed-off-by: Richard Yao <ryao@gentoo.org> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes #2288
This commit is contained in:
parent
12f9a6a3f9
commit
c6e924fea8
@ -377,7 +377,7 @@ check_slice(const char *path, blkid_cache cache, int force, boolean_t isspare)
|
|||||||
* using check_file() to see if it's safe. The one safe
|
* using check_file() to see if it's safe. The one safe
|
||||||
* case is a spare device shared between multiple pools.
|
* case is a spare device shared between multiple pools.
|
||||||
*/
|
*/
|
||||||
if (strcmp(value, "zfs") == 0) {
|
if (strcmp(value, "zfs_member") == 0) {
|
||||||
err = check_file(path, force, isspare);
|
err = check_file(path, force, isspare);
|
||||||
} else {
|
} else {
|
||||||
if (force) {
|
if (force) {
|
||||||
|
Loading…
Reference in New Issue
Block a user