zvol_impl: document and tidy flags

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
This commit is contained in:
Rob Norris 2024-07-18 12:37:43 +10:00 committed by Brian Behlendorf
parent 6c82951d11
commit 9b9a3934ad
1 changed files with 3 additions and 10 deletions

View File

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