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

Linux 5.17 compat: GENHD_FL_EXT_DEVT / GENHD_FL_NO_PART_SCAN #13297

Merged
merged 1 commit into from
Apr 19, 2022

Conversation

behlendorf
Copy link
Contributor

Motivation and Context

Issue #13294

Description

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.

torvalds/linux@1ebe2e5f9d68e94c ("block: remove GENHD_FL_EXT_DEVT")
torvalds/linux@46e7eac647b34ed4 ("block: rename GENHD_FL_NO_PART_SCAN to GENHD_FL_NO_PART")

How Has This Been Tested?

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Performance enhancement (non-breaking change which improves efficiency)
  • Code cleanup (non-breaking change which makes code smaller or more readable)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Library ABI change (libzfs, libzfs_core, libnvpair, libuutil and libzfsbootenv)
  • Documentation (a change to man pages or other documentation)

Checklist:

@Wenri
Copy link

Wenri commented Apr 6, 2022

I think this PR can't solve the problem, at least on my side using clang compiler. The reason is that GENHD_FL_NO_PART in 5.17 is not defined as a macro, but an enumerator constant:

enum {
	GENHD_FL_REMOVABLE			= 1 << 0,
	GENHD_FL_HIDDEN				= 1 << 1,
	GENHD_FL_NO_PART			= 1 << 2,
};

According to my test using clang, #if defined can't tell the existence of an enumerator constant, as it is not a preprocessor identifier. Here is the patch I used during my test:

--- a/module/os/linux/zfs/zvol_os.c	2022-04-06 18:41:25.312647604 +0800
+++ b/module/os/linux/zfs/zvol_os.c	2022-04-06 18:25:06.686248568 +0800
@@ -908,8 +908,8 @@
 		 * ZFS_VOLMODE_DEV disable partitioning on ZVOL devices: set
 		 * gendisk->minors = 1 as noted in include/linux/genhd.h.
 		 * Also disable extended partition numbers (GENHD_FL_EXT_DEVT)
-		 * and suppresses partition scanning (GENHD_FL_NO_PART_SCAN)
-		 * setting gendisk->flags accordingly.
+		 * and suppresses partition scanning (GENHD_FL_NO_PART_SCAN /
+		 * GENHD_FL_NO_PART) setting gendisk->flags accordingly.
 		 */
 		zso->zvo_disk->minors = 1;
 #if defined(GENHD_FL_EXT_DEVT)
@@ -917,6 +917,10 @@
 #endif
 #if defined(GENHD_FL_NO_PART_SCAN)
 		zso->zvo_disk->flags |= GENHD_FL_NO_PART_SCAN;
+#elif defined(GENHD_FL_NO_PART)
+		zso->zvo_disk->flags |= GENHD_FL_NO_PART;
+#else
+#error "Can't find usable flags to suppress partition scanning!"
 #endif
 	}
 	zso->zvo_disk->first_minor = (dev & MINORMASK);

And then the compilation failed with:

  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/../os/linux/zfs/zpl_xattr.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/../os/linux/zfs/zvol_os.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/vdev_raidz_math_sse2.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/vdev_raidz_math_ssse3.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/vdev_raidz_math_avx2.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/vdev_raidz_math_avx512f.o
  CC [M]  /var/lib/dkms/zfs/2.1.4/build/module/zfs/vdev_raidz_math_avx512bw.o
/var/lib/dkms/zfs/2.1.4/build/module/zfs/../os/linux/zfs/zvol_os.c:923:2: error: "Can't find usable flags to suppress partition scanning!"
#error "Can't find usable flags to suppress partition scanning!"
 ^
/var/lib/dkms/zfs/2.1.4/build/module/zfs/../os/linux/zfs/zvol_os.c:1120:3: warning: ignoring return value of function declared with 'warn_unused_result' attribute [-Wunused-result]
                add_disk(zv->zv_zso->zvo_disk);
                ^~~~~~~~ ~~~~~~~~~~~~~~~~~~~~
1 warning and 1 error generated.
make[5]: *** [scripts/Makefile.build:288: /var/lib/dkms/zfs/2.1.4/build/module/zfs/../os/linux/zfs/zvol_os.o] Error 1
make[5]: *** Waiting for unfinished jobs....
make[4]: *** [scripts/Makefile.build:550: /var/lib/dkms/zfs/2.1.4/build/module/zfs] Error 2
make[4]: *** Waiting for unfinished jobs....
make[3]: *** [Makefile:1829: /var/lib/dkms/zfs/2.1.4/build/module] Error 2
make[3]: Leaving directory '/usr/src/linux-headers-5.17.1-xanmod1-gllvm'
make[2]: *** [Makefile:55: modules-Linux] Error 2
make[2]: Leaving directory '/var/lib/dkms/zfs/2.1.4/build/module'
make[1]: *** [Makefile:878: all-recursive] Error 1
make[1]: Leaving directory '/var/lib/dkms/zfs/2.1.4/build'
make: *** [Makefile:739: all] Error 2

@behlendorf
Copy link
Contributor Author

Thanks for the quick feedback. Yes, that would make sense I overlooked it was an enum type and wasn't setup to test it locally. Sorry about that, I'll go ahead and update this PR with an actual configure check to detect which flags are supported.

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
Copy link
Contributor Author

@Wenri if you get a moment to verify the updated patch that would be appreciated. Thanks.

@Wenri
Copy link

Wenri commented Apr 12, 2022

Thanks for the patch. I can confirm the configure check works on 2.1.4.
I applied this patch on top of OpenZFS 2.1.4-0york0, and repeated the steps in Issue #13294.

~  $ zfs --version
zfs-2.1.4-1wenri0~issue13294
zfs-kmod-2.1.4-1wenri0~issue13294
~  $ ls -lah /dev/zvol/dpool/win10gpu*
lrwxrwxrwx 1 root root 9 Apr 12 18:20 /dev/zvol/dpool/win10gpu -> ../../zd0
~  $ ls -lah /dev/zd0*
brw-rw---- 1 root disk 230, 0 Apr 12 18:20 /dev/zd0
~  $ zfs get volmode dpool/win10gpu
NAME            PROPERTY  VALUE    SOURCE
dpool/win10gpu  volmode   dev      local
~  $ sudo fdisk -l /dev/zvol/dpool/win10gpu 
Disk /dev/zvol/dpool/win10gpu: 240 GiB, 257698037760 bytes, 503316480 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: F5017AC6-9C88-49C9-9BC8-74F0D4CEF648

Device                        Start       End   Sectors   Size Type
/dev/zvol/dpool/win10gpu1      2048    206847    204800   100M EFI System
/dev/zvol/dpool/win10gpu2    206848    239615     32768    16M Microsoft reserved
/dev/zvol/dpool/win10gpu3    239616 502292422 502052807 239.4G Microsoft basic data
/dev/zvol/dpool/win10gpu4 502292480 503312383   1019904   498M Windows recovery environment

With this patch, OpenZFS can hide the partition table correctly.

@behlendorf
Copy link
Contributor Author

@ckane would you mind reviewing this kernel compatibility fix.

@ckane
Copy link
Contributor

ckane commented Apr 13, 2022

@ckane would you mind reviewing this kernel compatibility fix.

I just got back from a work trip, but should be able to take a look by the end of the week

@behlendorf behlendorf added Status: Accepted Ready to integrate (reviewed, tested) and removed Status: Code Review Needed Ready for review and testing labels Apr 13, 2022
@behlendorf behlendorf merged commit 026f126 into openzfs:master Apr 19, 2022
behlendorf added a commit to behlendorf/zfs that referenced this pull request 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 pull request 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 pull request 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 pull request 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 pull request 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 pull request 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 pull request 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 pull request 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 pull request 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 pull request 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 pull request 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 pull request 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 pull request 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 pull request 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 pull request 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 pull request 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 pull request 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 pull request 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 pull request 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 pull request 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 pull request 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 pull request 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 pull request 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 pull request 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 pull request 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
Component: ZVOL ZFS Volumes Status: Accepted Ready to integrate (reviewed, tested)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants