Skip to content

Commit

Permalink
zvol_impl: document and tidy flags
Browse files Browse the repository at this point in the history
ZVOL_DUMPIFIED is a vestigial Solaris leftover, and not used anywhere.

Reviewed-by: Tony Hutter <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Sponsored-by: Klara, Inc.
Sponsored-by: Wasabi Technology, Inc.
Signed-off-by: Rob Norris <[email protected]>
Closes openzfs#16364
  • Loading branch information
robn authored and lundman committed Sep 4, 2024
1 parent a7631ef commit 802daa7
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions include/sys/zvol_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,9 @@

#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.
Expand Down

0 comments on commit 802daa7

Please sign in to comment.