logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

fadvise - utility to use the posix_fadvise system call

Authors

       Masatake YAMATO <yamato@redhat.com>

Availability

       The fadvise command is part of the util-linux package which can be downloaded from Linux Kernel Archive
       <https://www.kernel.org/pub/linux/utils/util-linux/>.

util-linux 2.40.2                                  2024-05-28                                         FADVISE(1)

Description

fadvise is a simple command wrapping posix_fadvise(2) system call that is for predeclaring an access
       pattern for file data.

Exit Status

fadvise has the following exit status values:

       0
           success

       1
           unspecified failure

Name

       fadvise - utility to use the posix_fadvise system call

Options

-d, --fdfile-descriptor
           Apply the advice to the file specified with the file descriptor instead of open a file specified with
           a file name.

       -a, --adviceadvice
           See the command output with --help option for available values for advice. If this option is omitted,
           "dontneed" is used as default advice.

       -o, --offsetoffset
           Specifies the beginning offset of the range, in bytes. If this option is omitted, 0 is used as
           default advice.

       -l, --lengthlength
           Specifies the length of the range, in bytes. If this option is omitted, 0 is used as default advice.

       -h, --help
           Display help text and exit.

       -V, --version
           Print version and exit.

Reporting Bugs

       For bug reports, use the issue tracker at https://github.com/util-linux/util-linux/issues.

See Also

posix_fadvise(2)

Synopsis

fadvise [-aadvice] [-ooffset] [-llength] filenamefadvise [-aadvice] [-ooffset] [-llength] -d file-descriptor

See Also