From 9b9a3934ad55bc17386f444bd451af7e201274f5 Mon Sep 17 00:00:00 2001 From: Rob Norris Date: Thu, 18 Jul 2024 12:37:43 +1000 Subject: [PATCH] zvol_impl: document and tidy flags ZVOL_DUMPIFIED is a vestigial Solaris leftover, and not used anywhere. Reviewed-by: Tony Hutter Reviewed-by: Brian Behlendorf Sponsored-by: Klara, Inc. Sponsored-by: Wasabi Technology, Inc. Signed-off-by: Rob Norris Closes #16364 --- include/sys/zvol_impl.h | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/include/sys/zvol_impl.h b/include/sys/zvol_impl.h index 6c15c84b6b..777b1b93ee 100644 --- a/include/sys/zvol_impl.h +++ b/include/sys/zvol_impl.h @@ -24,16 +24,9 @@ #include -#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.