OS Manuals

/usr/bin/sg_rbuf

SCSI utilities for Linux, Unix and Windows

From sg3-utils 1.49-r3 (enterprise-packages), captured 2026-11-08 by running sg_rbuf --help (exit 0). permalink

Usage: sg_rbuf [--buffer=EACH] [--dio] [--echo] [--help] [--mmap]
               [--quick] [--size=OVERALL] [--time] [--verbose] [--version]
               SG_DEVICE
  where:
    --buffer=EACH|-b EACH    buffer size to use (in bytes)
    --dio|-d        requests dio ('-q' overrides it)
    --echo|-e       use echo buffer (def: use data mode)
    --help|-h       print usage message then exit
    --mmap|-m       requests mmap-ed IO (overrides -q, -d)
    --quick|-q      quick, don't xfer to user space
    --size=OVERALL|-s OVERALL    total size to read (in bytes)
                    default: 200 MiB
    --time|-t       time the data transfer
    --verbose|-v    increase verbosity (more debug)
    --old|-O        use old interface (use as first option)
    --version|-V    print version string then exit

Use SCSI READ BUFFER command (data or echo buffer mode, buffer id 0)
repeatedly. This utility only works with Linux sg devices.
Options (11)
OptionDescriptionSource
--buffer, -b EACH|-bwhere EACH is the number of bytes to be transferred by each READ BUFFER command.help + man
--size, -s OVERALL|-swhere OVERALL is the size of total transfer in bytes.help + man
-d, --diouse direct IO if available. (in the manual page but not in --help)man
-h, --helpprint usage message then exit. (in the manual page but not in --help)man
-m, --mmapuse memory mapped IO if available. (in the manual page but not in --help)man
-O, --oldSwitch to older style options. (in the manual page but not in --help)man
-q, --quickonly transfer the data into kernel buffers (typically by DMA from the SCSI adapter card) and do not move it into the user space. (in the manual page but not in --help)man
-t, --timetimes the bulk data transfer component of this command. (in the manual page but not in --help)man
-v, --verboseincrease level of verbosity. (in the manual page but not in --help)man
-V, --versionprint out version string then exit. (in the manual page but not in --help)man
-N, --newSwitch to the newer style options. (in the manual page but not in --help)man
Exit status (1) from the manual page
0it is successful

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