Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ZVOL 'volmode=dev' no longer hides partitions in Linux 5.17.1 #13294

Closed
Wenri opened this issue Apr 5, 2022 · 1 comment
Closed

ZVOL 'volmode=dev' no longer hides partitions in Linux 5.17.1 #13294

Wenri opened this issue Apr 5, 2022 · 1 comment
Labels
Type: Defect Incorrect behavior (e.g. crash, hang) Type: Regression Indicates a functional regression

Comments

@Wenri
Copy link

Wenri commented Apr 5, 2022

System information

Type Version/Name
Distribution Name Ubuntu
Distribution Version 21.10 (Impish Indri)
Kernel Version 5.17.1-xanmod1
Architecture x86_64
OpenZFS Version 2.1.4-0york0

Describe the problem you're observing

Two commits in Linux 5.17 (ChangeLog):

1ebe2e5f9d68e94c ("block: remove GENHD_FL_EXT_DEVT")
46e7eac647b34ed4 ("block: rename GENHD_FL_NO_PART_SCAN to GENHD_FL_NO_PART")

Removed GENHD_FL_EXT_DEVT and renamed GENHD_FL_NO_PART_SCAN. Both macros are referenced in module/os/linux/zfs/zvol_os.c. As a result, in function zvol_alloc, zso->zvo_disk->flags is not configured to hide the partition, leaving only:

zso->zvo_disk->minors = 1;

This partial configuration seems to affect the /lib/udev/zvol_id, causing it produces wrong partition name for zvol device node (e.g. /dev/zd0p1), which could overwrite the symlink of /dev/zd0 in the udev rule 60-zvol.rules.

In short, using zvol under linux kernel 5.17 with volmode=dev could result in wrong symbol link in /dev/zvol/.

Describe how to reproduce the problem

Compile and Install ZFS under Linux kernel 5.17

zfs create -s -V 100g -o volmode=dev dpool/testvol  # create a zvol
parted /dev/dpool/testvol  # partition the zvol
zpool export dpool && zpool import dpool  # export and import the pool to see the wrong symbol link

Include any warning/errors/backtraces from the system logs

>/dev/zvol/dpool? sudo zfs get volmode dpool/win10 dpool/win10gpu
NAME            PROPERTY  VALUE    SOURCE
dpool/win10     volmode   dev      local
dpool/win10gpu  volmode   dev      local
>/dev/zvol/dpool? ls -lah win10 win10-*
lrwxrwxrwx 1 root root  9 Apr  4 21:57 win10 -> ../../zd0
lrwxrwxrwx 1 root root 11 Apr  4 21:57 win10-part10 -> ../../zd0p3
lrwxrwxrwx 1 root root 11 Apr  4 21:57 win10-part11 -> ../../zd0p4
lrwxrwxrwx 1 root root 11 Apr  4 21:57 win10-part8 -> ../../zd0p1
lrwxrwxrwx 1 root root 11 Apr  4 21:57 win10-part9 -> ../../zd0p2
>/dev/zvol/dpool? ls -lah win10gpu*
lrwxrwxrwx 1 root root 12 Apr  4 22:17 win10gpu -> ../../zd16p1
lrwxrwxrwx 1 root root 12 Apr  4 22:17 win10gpu-part1 -> ../../zd16p2
lrwxrwxrwx 1 root root 12 Apr  4 22:17 win10gpu-part2 -> ../../zd16p3
lrwxrwxrwx 1 root root 12 Apr  4 22:17 win10gpu-part3 -> ../../zd16p4

Possible workarounds

The following patch can solve the problem:

--- a/module/os/linux/zfs/zvol_os.c	2022-04-05 19:10:14.897022899 +0800
+++ b/module/os/linux/zfs/zvol_os.c	2022-04-05 19:02:57.019555880 +0800
@@ -917,6 +917,8 @@
 #endif
 #if defined(GENHD_FL_NO_PART_SCAN)
 		zso->zvo_disk->flags |= GENHD_FL_NO_PART_SCAN;
+#else
+		zso->zvo_disk->flags |= GENHD_FL_NO_PART;
 #endif
 	}
 	zso->zvo_disk->first_minor = (dev & MINORMASK);

But I believe there are better solution for best compatibility of all kernel versions.

@Wenri Wenri added the Type: Defect Incorrect behavior (e.g. crash, hang) label Apr 5, 2022
@behlendorf behlendorf added the Type: Regression Indicates a functional regression label Apr 5, 2022
behlendorf added a commit to behlendorf/zfs that referenced this issue Apr 5, 2022
As of the 5.17 kernel the GENHD_FL_EXT_DEVT flag has been removed and the
GENHD_FL_NO_PART_SCAN flag renamed GENHD_FL_NO_PART.  Update zvol_alloc()
to set GENHD_FL_NO_PART for the newer kernels which is sufficient.  The
behavior for prior kernels remains unchanged.

1ebe2e5f9d68e94c ("block: remove GENHD_FL_EXT_DEVT")
46e7eac647b34ed4 ("block: rename GENHD_FL_NO_PART_SCAN to GENHD_FL_NO_PART")

Signed-off-by: Brian Behlendorf <[email protected]>
Issue openzfs#13294
behlendorf added a commit to behlendorf/zfs that referenced this issue Apr 5, 2022
As of the 5.17 kernel the GENHD_FL_EXT_DEVT flag has been removed and the
GENHD_FL_NO_PART_SCAN flag renamed GENHD_FL_NO_PART.  Update zvol_alloc()
to set GENHD_FL_NO_PART for the newer kernels which is sufficient.  The
behavior for prior kernels remains unchanged.

1ebe2e5f9d68e94c ("block: remove GENHD_FL_EXT_DEVT")
46e7eac647b34ed4 ("block: rename GENHD_FL_NO_PART_SCAN to GENHD_FL_NO_PART")

Signed-off-by: Brian Behlendorf <[email protected]>
Issue openzfs#13294
@behlendorf
Copy link
Contributor

@Wenri thanks for catching this and doing the legwork to determine where it was introduced. I've gone ahead and opened PR #13297 with a fix which is almost the same as what you proposed, and is compatible with kernels back to 3.10. If you could independently verify it resolves the issue that would be helpful.

behlendorf added a commit to behlendorf/zfs that referenced this issue Apr 6, 2022
As of the 5.17 kernel the GENHD_FL_EXT_DEVT flag has been removed
and the GENHD_FL_NO_PART_SCAN flag renamed GENHD_FL_NO_PART. Update
zvol_alloc() to set GENHD_FL_NO_PART for the newer kernels which
is sufficient.  The behavior for prior kernels remains unchanged.

1ebe2e5f ("block: remove GENHD_FL_EXT_DEVT")
46e7eac6 ("block: rename GENHD_FL_NO_PART_SCAN to GENHD_FL_NO_PART")

Signed-off-by: Brian Behlendorf <[email protected]>
Issue openzfs#13294
behlendorf added a commit to behlendorf/zfs that referenced this issue Apr 19, 2022
As of the 5.17 kernel the GENHD_FL_EXT_DEVT flag has been removed
and the GENHD_FL_NO_PART_SCAN flag renamed GENHD_FL_NO_PART. Update
zvol_alloc() to set GENHD_FL_NO_PART for the newer kernels which
is sufficient.  The behavior for prior kernels remains unchanged.

1ebe2e5f ("block: remove GENHD_FL_EXT_DEVT")
46e7eac6 ("block: rename GENHD_FL_NO_PART_SCAN to GENHD_FL_NO_PART")

Reviewed-by: Tony Hutter <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes openzfs#13294
Closes openzfs#13297
behlendorf added a commit that referenced this issue Apr 20, 2022
As of the 5.17 kernel the GENHD_FL_EXT_DEVT flag has been removed
and the GENHD_FL_NO_PART_SCAN flag renamed GENHD_FL_NO_PART. Update
zvol_alloc() to set GENHD_FL_NO_PART for the newer kernels which
is sufficient.  The behavior for prior kernels remains unchanged.

1ebe2e5f ("block: remove GENHD_FL_EXT_DEVT")
46e7eac6 ("block: rename GENHD_FL_NO_PART_SCAN to GENHD_FL_NO_PART")

Reviewed-by: Tony Hutter <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes #13294
Closes #13297
veggiemike pushed a commit to veggiemike/zfs that referenced this issue May 15, 2022
As of the 5.17 kernel the GENHD_FL_EXT_DEVT flag has been removed
and the GENHD_FL_NO_PART_SCAN flag renamed GENHD_FL_NO_PART. Update
zvol_alloc() to set GENHD_FL_NO_PART for the newer kernels which
is sufficient.  The behavior for prior kernels remains unchanged.

1ebe2e5f ("block: remove GENHD_FL_EXT_DEVT")
46e7eac6 ("block: rename GENHD_FL_NO_PART_SCAN to GENHD_FL_NO_PART")

Reviewed-by: Tony Hutter <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes openzfs#13294
Closes openzfs#13297
(cherry picked from commit aa1c3c1)
nicman23 pushed a commit to nicman23/zfs that referenced this issue Aug 22, 2022
As of the 5.17 kernel the GENHD_FL_EXT_DEVT flag has been removed
and the GENHD_FL_NO_PART_SCAN flag renamed GENHD_FL_NO_PART. Update
zvol_alloc() to set GENHD_FL_NO_PART for the newer kernels which
is sufficient.  The behavior for prior kernels remains unchanged.

1ebe2e5f ("block: remove GENHD_FL_EXT_DEVT")
46e7eac6 ("block: rename GENHD_FL_NO_PART_SCAN to GENHD_FL_NO_PART")

Reviewed-by: Tony Hutter <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes openzfs#13294
Closes openzfs#13297
nicman23 pushed a commit to nicman23/zfs that referenced this issue Aug 22, 2022
As of the 5.17 kernel the GENHD_FL_EXT_DEVT flag has been removed
and the GENHD_FL_NO_PART_SCAN flag renamed GENHD_FL_NO_PART. Update
zvol_alloc() to set GENHD_FL_NO_PART for the newer kernels which
is sufficient.  The behavior for prior kernels remains unchanged.

1ebe2e5f ("block: remove GENHD_FL_EXT_DEVT")
46e7eac6 ("block: rename GENHD_FL_NO_PART_SCAN to GENHD_FL_NO_PART")

Reviewed-by: Tony Hutter <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes openzfs#13294
Closes openzfs#13297
lundman pushed a commit to openzfsonwindows/openzfs that referenced this issue Sep 2, 2022
As of the 5.17 kernel the GENHD_FL_EXT_DEVT flag has been removed
and the GENHD_FL_NO_PART_SCAN flag renamed GENHD_FL_NO_PART. Update
zvol_alloc() to set GENHD_FL_NO_PART for the newer kernels which
is sufficient.  The behavior for prior kernels remains unchanged.

1ebe2e5f ("block: remove GENHD_FL_EXT_DEVT")
46e7eac6 ("block: rename GENHD_FL_NO_PART_SCAN to GENHD_FL_NO_PART")

Reviewed-by: Tony Hutter <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes openzfs#13294
Closes openzfs#13297
beren12 pushed a commit to beren12/zfs that referenced this issue Sep 19, 2022
As of the 5.17 kernel the GENHD_FL_EXT_DEVT flag has been removed
and the GENHD_FL_NO_PART_SCAN flag renamed GENHD_FL_NO_PART. Update
zvol_alloc() to set GENHD_FL_NO_PART for the newer kernels which
is sufficient.  The behavior for prior kernels remains unchanged.

1ebe2e5f ("block: remove GENHD_FL_EXT_DEVT")
46e7eac6 ("block: rename GENHD_FL_NO_PART_SCAN to GENHD_FL_NO_PART")

Reviewed-by: Tony Hutter <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes openzfs#13294
Closes openzfs#13297
andrewc12 pushed a commit to andrewc12/openzfs that referenced this issue Sep 23, 2022
As of the 5.17 kernel the GENHD_FL_EXT_DEVT flag has been removed
and the GENHD_FL_NO_PART_SCAN flag renamed GENHD_FL_NO_PART. Update
zvol_alloc() to set GENHD_FL_NO_PART for the newer kernels which
is sufficient.  The behavior for prior kernels remains unchanged.

1ebe2e5f ("block: remove GENHD_FL_EXT_DEVT")
46e7eac6 ("block: rename GENHD_FL_NO_PART_SCAN to GENHD_FL_NO_PART")

Reviewed-by: Tony Hutter <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes openzfs#13294
Closes openzfs#13297
andrewc12 pushed a commit to andrewc12/openzfs that referenced this issue Sep 23, 2022
As of the 5.17 kernel the GENHD_FL_EXT_DEVT flag has been removed
and the GENHD_FL_NO_PART_SCAN flag renamed GENHD_FL_NO_PART. Update
zvol_alloc() to set GENHD_FL_NO_PART for the newer kernels which
is sufficient.  The behavior for prior kernels remains unchanged.

1ebe2e5f ("block: remove GENHD_FL_EXT_DEVT")
46e7eac6 ("block: rename GENHD_FL_NO_PART_SCAN to GENHD_FL_NO_PART")

Reviewed-by: Tony Hutter <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes openzfs#13294
Closes openzfs#13297
andrewc12 pushed a commit to andrewc12/openzfs that referenced this issue Sep 23, 2022
As of the 5.17 kernel the GENHD_FL_EXT_DEVT flag has been removed
and the GENHD_FL_NO_PART_SCAN flag renamed GENHD_FL_NO_PART. Update
zvol_alloc() to set GENHD_FL_NO_PART for the newer kernels which
is sufficient.  The behavior for prior kernels remains unchanged.

1ebe2e5f ("block: remove GENHD_FL_EXT_DEVT")
46e7eac6 ("block: rename GENHD_FL_NO_PART_SCAN to GENHD_FL_NO_PART")

Reviewed-by: Tony Hutter <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes openzfs#13294
Closes openzfs#13297
andrewc12 pushed a commit to andrewc12/openzfs that referenced this issue Sep 23, 2022
As of the 5.17 kernel the GENHD_FL_EXT_DEVT flag has been removed
and the GENHD_FL_NO_PART_SCAN flag renamed GENHD_FL_NO_PART. Update
zvol_alloc() to set GENHD_FL_NO_PART for the newer kernels which
is sufficient.  The behavior for prior kernels remains unchanged.

1ebe2e5f ("block: remove GENHD_FL_EXT_DEVT")
46e7eac6 ("block: rename GENHD_FL_NO_PART_SCAN to GENHD_FL_NO_PART")

Reviewed-by: Tony Hutter <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes openzfs#13294
Closes openzfs#13297
andrewc12 pushed a commit to andrewc12/openzfs that referenced this issue Sep 23, 2022
As of the 5.17 kernel the GENHD_FL_EXT_DEVT flag has been removed
and the GENHD_FL_NO_PART_SCAN flag renamed GENHD_FL_NO_PART. Update
zvol_alloc() to set GENHD_FL_NO_PART for the newer kernels which
is sufficient.  The behavior for prior kernels remains unchanged.

1ebe2e5f ("block: remove GENHD_FL_EXT_DEVT")
46e7eac6 ("block: rename GENHD_FL_NO_PART_SCAN to GENHD_FL_NO_PART")

Reviewed-by: Tony Hutter <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes openzfs#13294
Closes openzfs#13297
andrewc12 pushed a commit to andrewc12/openzfs that referenced this issue Sep 23, 2022
As of the 5.17 kernel the GENHD_FL_EXT_DEVT flag has been removed
and the GENHD_FL_NO_PART_SCAN flag renamed GENHD_FL_NO_PART. Update
zvol_alloc() to set GENHD_FL_NO_PART for the newer kernels which
is sufficient.  The behavior for prior kernels remains unchanged.

1ebe2e5f ("block: remove GENHD_FL_EXT_DEVT")
46e7eac6 ("block: rename GENHD_FL_NO_PART_SCAN to GENHD_FL_NO_PART")

Reviewed-by: Tony Hutter <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes openzfs#13294
Closes openzfs#13297
andrewc12 pushed a commit to andrewc12/openzfs that referenced this issue Sep 23, 2022
As of the 5.17 kernel the GENHD_FL_EXT_DEVT flag has been removed
and the GENHD_FL_NO_PART_SCAN flag renamed GENHD_FL_NO_PART. Update
zvol_alloc() to set GENHD_FL_NO_PART for the newer kernels which
is sufficient.  The behavior for prior kernels remains unchanged.

1ebe2e5f ("block: remove GENHD_FL_EXT_DEVT")
46e7eac6 ("block: rename GENHD_FL_NO_PART_SCAN to GENHD_FL_NO_PART")

Reviewed-by: Tony Hutter <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes openzfs#13294
Closes openzfs#13297
andrewc12 pushed a commit to andrewc12/openzfs that referenced this issue Sep 23, 2022
As of the 5.17 kernel the GENHD_FL_EXT_DEVT flag has been removed
and the GENHD_FL_NO_PART_SCAN flag renamed GENHD_FL_NO_PART. Update
zvol_alloc() to set GENHD_FL_NO_PART for the newer kernels which
is sufficient.  The behavior for prior kernels remains unchanged.

1ebe2e5f ("block: remove GENHD_FL_EXT_DEVT")
46e7eac6 ("block: rename GENHD_FL_NO_PART_SCAN to GENHD_FL_NO_PART")

Reviewed-by: Tony Hutter <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes openzfs#13294
Closes openzfs#13297
andrewc12 pushed a commit to andrewc12/openzfs that referenced this issue Sep 23, 2022
As of the 5.17 kernel the GENHD_FL_EXT_DEVT flag has been removed
and the GENHD_FL_NO_PART_SCAN flag renamed GENHD_FL_NO_PART. Update
zvol_alloc() to set GENHD_FL_NO_PART for the newer kernels which
is sufficient.  The behavior for prior kernels remains unchanged.

1ebe2e5f ("block: remove GENHD_FL_EXT_DEVT")
46e7eac6 ("block: rename GENHD_FL_NO_PART_SCAN to GENHD_FL_NO_PART")

Reviewed-by: Tony Hutter <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes openzfs#13294
Closes openzfs#13297
andrewc12 pushed a commit to andrewc12/openzfs that referenced this issue Sep 23, 2022
As of the 5.17 kernel the GENHD_FL_EXT_DEVT flag has been removed
and the GENHD_FL_NO_PART_SCAN flag renamed GENHD_FL_NO_PART. Update
zvol_alloc() to set GENHD_FL_NO_PART for the newer kernels which
is sufficient.  The behavior for prior kernels remains unchanged.

1ebe2e5f ("block: remove GENHD_FL_EXT_DEVT")
46e7eac6 ("block: rename GENHD_FL_NO_PART_SCAN to GENHD_FL_NO_PART")

Reviewed-by: Tony Hutter <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes openzfs#13294
Closes openzfs#13297
andrewc12 pushed a commit to andrewc12/openzfs that referenced this issue Sep 23, 2022
As of the 5.17 kernel the GENHD_FL_EXT_DEVT flag has been removed
and the GENHD_FL_NO_PART_SCAN flag renamed GENHD_FL_NO_PART. Update
zvol_alloc() to set GENHD_FL_NO_PART for the newer kernels which
is sufficient.  The behavior for prior kernels remains unchanged.

1ebe2e5f ("block: remove GENHD_FL_EXT_DEVT")
46e7eac6 ("block: rename GENHD_FL_NO_PART_SCAN to GENHD_FL_NO_PART")

Reviewed-by: Tony Hutter <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes openzfs#13294
Closes openzfs#13297
andrewc12 pushed a commit to andrewc12/openzfs that referenced this issue Sep 23, 2022
As of the 5.17 kernel the GENHD_FL_EXT_DEVT flag has been removed
and the GENHD_FL_NO_PART_SCAN flag renamed GENHD_FL_NO_PART. Update
zvol_alloc() to set GENHD_FL_NO_PART for the newer kernels which
is sufficient.  The behavior for prior kernels remains unchanged.

1ebe2e5f ("block: remove GENHD_FL_EXT_DEVT")
46e7eac6 ("block: rename GENHD_FL_NO_PART_SCAN to GENHD_FL_NO_PART")

Reviewed-by: Tony Hutter <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes openzfs#13294
Closes openzfs#13297
andrewc12 pushed a commit to andrewc12/openzfs that referenced this issue Sep 23, 2022
As of the 5.17 kernel the GENHD_FL_EXT_DEVT flag has been removed
and the GENHD_FL_NO_PART_SCAN flag renamed GENHD_FL_NO_PART. Update
zvol_alloc() to set GENHD_FL_NO_PART for the newer kernels which
is sufficient.  The behavior for prior kernels remains unchanged.

1ebe2e5f ("block: remove GENHD_FL_EXT_DEVT")
46e7eac6 ("block: rename GENHD_FL_NO_PART_SCAN to GENHD_FL_NO_PART")

Reviewed-by: Tony Hutter <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes openzfs#13294
Closes openzfs#13297
andrewc12 pushed a commit to andrewc12/openzfs that referenced this issue Sep 23, 2022
As of the 5.17 kernel the GENHD_FL_EXT_DEVT flag has been removed
and the GENHD_FL_NO_PART_SCAN flag renamed GENHD_FL_NO_PART. Update
zvol_alloc() to set GENHD_FL_NO_PART for the newer kernels which
is sufficient.  The behavior for prior kernels remains unchanged.

1ebe2e5f ("block: remove GENHD_FL_EXT_DEVT")
46e7eac6 ("block: rename GENHD_FL_NO_PART_SCAN to GENHD_FL_NO_PART")

Reviewed-by: Tony Hutter <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes openzfs#13294
Closes openzfs#13297
andrewc12 pushed a commit to andrewc12/openzfs that referenced this issue Sep 23, 2022
As of the 5.17 kernel the GENHD_FL_EXT_DEVT flag has been removed
and the GENHD_FL_NO_PART_SCAN flag renamed GENHD_FL_NO_PART. Update
zvol_alloc() to set GENHD_FL_NO_PART for the newer kernels which
is sufficient.  The behavior for prior kernels remains unchanged.

1ebe2e5f ("block: remove GENHD_FL_EXT_DEVT")
46e7eac6 ("block: rename GENHD_FL_NO_PART_SCAN to GENHD_FL_NO_PART")

Reviewed-by: Tony Hutter <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes openzfs#13294
Closes openzfs#13297
andrewc12 pushed a commit to andrewc12/openzfs that referenced this issue Sep 23, 2022
As of the 5.17 kernel the GENHD_FL_EXT_DEVT flag has been removed
and the GENHD_FL_NO_PART_SCAN flag renamed GENHD_FL_NO_PART. Update
zvol_alloc() to set GENHD_FL_NO_PART for the newer kernels which
is sufficient.  The behavior for prior kernels remains unchanged.

1ebe2e5f ("block: remove GENHD_FL_EXT_DEVT")
46e7eac6 ("block: rename GENHD_FL_NO_PART_SCAN to GENHD_FL_NO_PART")

Reviewed-by: Tony Hutter <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes openzfs#13294
Closes openzfs#13297
andrewc12 pushed a commit to andrewc12/openzfs that referenced this issue Sep 23, 2022
As of the 5.17 kernel the GENHD_FL_EXT_DEVT flag has been removed
and the GENHD_FL_NO_PART_SCAN flag renamed GENHD_FL_NO_PART. Update
zvol_alloc() to set GENHD_FL_NO_PART for the newer kernels which
is sufficient.  The behavior for prior kernels remains unchanged.

1ebe2e5f ("block: remove GENHD_FL_EXT_DEVT")
46e7eac6 ("block: rename GENHD_FL_NO_PART_SCAN to GENHD_FL_NO_PART")

Reviewed-by: Tony Hutter <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes openzfs#13294
Closes openzfs#13297
andrewc12 pushed a commit to andrewc12/openzfs that referenced this issue Sep 23, 2022
As of the 5.17 kernel the GENHD_FL_EXT_DEVT flag has been removed
and the GENHD_FL_NO_PART_SCAN flag renamed GENHD_FL_NO_PART. Update
zvol_alloc() to set GENHD_FL_NO_PART for the newer kernels which
is sufficient.  The behavior for prior kernels remains unchanged.

1ebe2e5f ("block: remove GENHD_FL_EXT_DEVT")
46e7eac6 ("block: rename GENHD_FL_NO_PART_SCAN to GENHD_FL_NO_PART")

Reviewed-by: Tony Hutter <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes openzfs#13294
Closes openzfs#13297
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Defect Incorrect behavior (e.g. crash, hang) Type: Regression Indicates a functional regression
Projects
None yet
Development

No branches or pull requests

2 participants