OS Manuals

/usr/share/zfs/zfs-tests/bin/xattrtest

zfs scripts

From zfs-scripts 2.4.4-r4 (os), captured 2026-11-05 by running xattrtest --help (exit 1). permalink

usage: /usr/share/zfs/zfs-tests/bin/xattrtest [-hvycdrRk] [-n <nth>] [-f <files>] [-x <xattrs>]
       [-s <bytes>] [-p <path>] [-t <script> ] [-o <phase>]
  --help        -h           This help
  --verbose     -v           Increase verbosity
  --verify      -y           Verify xattr contents
  --nth         -n <nth>     Print every nth file
  --files       -f <files>   Set xattrs on N files
  --xattrs      -x <xattrs>  Set N xattrs on each file
  --size        -s <bytes>   Set N bytes per xattr
  --path        -p <path>    Path to files
  --synccaches  -c           Sync caches between phases
  --dropcaches  -d           Drop caches between phases
  --script      -t <script>  Exec script between phases
  --seed        -e <seed>    Random seed value
  --random      -r           Randomly sized xattrs [16-size]
  --randomvalue -R           Random xattr values
  --keep        -k           Don't unlink files
  --only        -o <num>     Only run phase N
                             0=all, 1=create, 2=setxattr,
                             3=getxattr, 4=unlink
Options (16)
OptionDescriptionSource
--help-h This helphelp
--verbose-v Increase verbosityhelp
--verify-y Verify xattr contentshelp
--nth-n <nth> Print every nth filehelp
--files-f <files> Set xattrs on N fileshelp
--xattrs-x <xattrs> Set N xattrs on each filehelp
--size-s <bytes> Set N bytes per xattrhelp
--path-p <path> Path to fileshelp
--synccaches-c Sync caches between phaseshelp
--dropcaches-d Drop caches between phaseshelp
--script-t <script> Exec script between phaseshelp
--seed-e <seed> Random seed valuehelp
--random-r Randomly sized xattrs [16-size]help
--randomvalue -RRandom xattr valueshelp
--keep-k Don't unlink fileshelp
--only-o <num> Only run phase N 0=all, 1=create, 2=setxattr, 3=getxattr, 4=unlinkhelp

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.