]> git.proxmox.com Git - mirror_zfs.git/commitdiff
zvol_impl: document and tidy flags
authorRob Norris <rob.norris@klarasystems.com>
Thu, 18 Jul 2024 02:37:43 +0000 (12:37 +1000)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 6 Aug 2024 19:06:46 +0000 (12:06 -0700)
ZVOL_DUMPIFIED is a vestigial Solaris leftover, and not used anywhere.

Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Sponsored-by: Klara, Inc.
Sponsored-by: Wasabi Technology, Inc.
Signed-off-by: Rob Norris <rob.norris@klarasystems.com>
Closes #16364

include/sys/zvol_impl.h

index 6c15c84b6bf41b7826881d3121b4f6b6fdcf30ab..777b1b93ee0360652870b82987c8307778569c31 100644 (file)
 
 #include <sys/zfs_context.h>
 
-#define        ZVOL_RDONLY     0x1
-/*
- * Whether the zvol has been written to (as opposed to ZVOL_RDONLY, which
- * specifies whether or not the zvol _can_ be written to)
- */
-#define        ZVOL_WRITTEN_TO 0x2
-
-#define        ZVOL_DUMPIFIED  0x4
-
-#define        ZVOL_EXCL       0x8
+#define        ZVOL_RDONLY     (1<<0)  /* zvol is readonly (writes rejected) */
+#define        ZVOL_WRITTEN_TO (1<<1)  /* zvol has been written to (needs flush) */
+#define        ZVOL_EXCL       (1<<2)  /* zvol has O_EXCL client right now */
 
 /*
  * The in-core state of each volume.