mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2025-01-26 09:54:22 +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
|
||||
* 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);
|
||||
} else {
|
||||
if (force) {
|
||||
|
Loading…
Reference in New Issue
Block a user