Sortix nightly manual
This manual documents Sortix nightly, a development build that has not been officially released. You can instead view this document in the latest official manual.
NAME
fatfs — fat filesystem driverSYNOPSIS
fatfs | [-bf] [-o mount-options] [-p path] device mountpoint |
DESCRIPTION
fatfs mounts the FAT filesystem on the device for reading and writing at the mountpoint. fatfs forks and runs in the background once the filesystem has been mounted.- -b, --background
- Run in the background in a subprocess after successfully mounting. This is the default behavior.
- -f, --foreground
- Run in the foreground and do not detach in a subprocess.
- -o mount-options
-
Mount the filesystem with the following comma-separated mount-options:
- cache=size
- Sets the filesystem cache to the specified size, which is measured in an optional suffix: % for percent of system memory, K for KiB, M for MiB, or G for GiB. The default is 10% of the system memory.
- ro
- Mount the filesystem as read-only.
- rw
- Mount the filesystem for read and write. This option is the default behavior.
- -p, --pretend-mount-path=path
- When answering requests about where the filesystem is mounted, reply with this path instead of the actual mountpoint in tcgetblob(2). This behavior is useful for chroot(2) environments.
- LABEL=label
- Search for a filesystem with this label as the volume label. The volume label can be changed with fatlabel(8.)
- SERIAL=serial
- Search for a filesystem with this serial number as the volume id in the XXXX-XXXX upper-case hexadecimal format.
- UUID=uuid
- Search for a filesystem with this uuid, containing the 4 byte file serial number and 8 byte volume label and a trailing nul byte. This identifier is recommended for filesystem searches to avoid mounting the wrong filesystem, although it might not be globally unique. Note that if the volume label is changed with fatlabel(8,) then fstab(5) must be updated with the new UUID.
IMPLEMENTATION NOTES
If -f, then fatfs signals readiness when it has successfully mounted the filesystem.ASYNCHRONOUS EVENTS
- SIGTERM
- Request daemon termination. fatfs will exit after gracefully unmounting the filesystem.
EXIT STATUS
If -b, fatfs exits 0 after successfully mounting the filesystem and serving requests in a background process.EXAMPLES
$ mkfs.fat /dev/foo0 $ fatfs /dev/foo0 /mnt $ echo bar > /mnt/bar $ unmount /mnt $ fsck.fat /dev/foo0