diff options
author | Pawel Jakub Dawidek <[email protected]> | 2022-05-02 16:26:28 -0700 |
---|---|---|
committer | GitHub <[email protected]> | 2022-05-02 16:26:28 -0700 |
commit | a64d757aa4d4796af540ebe2a098e82c94ccbfcf (patch) | |
tree | 163039db007c96aa2575e3e28b635a3738a7b9fb /lib | |
parent | 159c6fd1540239120f9872d7f4cf8d340fc21c44 (diff) |
FreeBSD: Clean up the use of ioflags
- Prefer O_* flags over F* flags that mostly mirror O_* flags anyway,
but O_* flags seem to be preferred.
- Simplify the code as all the F*SYNC flags were defined as FFSYNC flag.
- Don't define FRSYNC flag, so we don't generate unnecessary ZIL commits.
- Remove EXCL define, FreeBSD ignores the excl argument for zfs_create()
anyway.
Reviewed-by: Allan Jude <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Pawel Jakub Dawidek <[email protected]>
Closes #13400
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libspl/include/os/freebsd/sys/file.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/lib/libspl/include/os/freebsd/sys/file.h b/lib/libspl/include/os/freebsd/sys/file.h index 27fd2888f..5a20686dc 100644 --- a/lib/libspl/include/os/freebsd/sys/file.h +++ b/lib/libspl/include/os/freebsd/sys/file.h @@ -29,14 +29,6 @@ #include_next <sys/file.h> -#define FCREAT O_CREAT -#define FTRUNC O_TRUNC -#define FSYNC O_SYNC -#define FDSYNC O_DSYNC -#define FEXCL O_EXCL - -#define FNODSYNC 0x10000 /* fsync pseudo flag */ -#define FNOFOLLOW 0x20000 /* don't follow symlinks */ #define FIGNORECASE 0x80000 /* request case-insensitive lookups */ #endif |