HomeFreeBSD

FreeBSD: Clean up the use of ioflags

Description

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 <allan@klarasystems.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Pawel Jakub Dawidek <pawel@dawidek.net>
Closes #13400

Details

Provenance
pjdAuthored on May 2 2022, 11:26 PM
GitHub <noreply@github.com>Committed on May 2 2022, 11:26 PM
Parents
rG159c6fd15402: Add missing replay entry in zvol_replay_vector for TX_SETSAXATTR
Branches
Unknown
Tags
Unknown

Event Timeline