lofi - Loopback file driver
The lofi file driver exports a file as a block device, enabling system utilities such as fstyp(1M), fsck(1M) and mount(1M) to operate on underlying file system images (including CD-ROM and FAT floppy images) contained on the block device. Reads and writes to the block device are translated to reads and writes on the exported file. See lofiadm(1M) for examples.
File block device entries are contained in /dev/lofi. The /dev/rlofi file contains the character (or raw) device entries. Entries are in the form of decimal numbers and are assigned through lofiadm(1M). When created, these device entries are owned by root, in group sys, and have permissions 0600. Ownership, group, and permission settings can be altered, however there may be ramifications. See lofiadm(1M) for more information.
Images exported through lofi can be encrypted. See lofiadm(1M) for details on how to specify encryption keys. lofi files have no header information, thus the encryption algorithm, key length and key name or value are not stored with or in the lofi image.
/dev/lofictl
/dev/lofi/n
/dev/rlofi/n
/kernel/drv/lofi
/kernel/drv/sparcv9/lofi
/kernel/drv/amd64/lofi
/kernel/drv/lofi.conf
See attributes(5) for a description of the following attributes:
|
fstyp(1M), fsck(1M), mount(1M), lofiadm(1M), newfs(1M), attributes(5), lofs(7FS)
Just as you would not directly access a disk device that has mounted file systems, you should not access a file associated with a block device except through the lofi file driver.
For compatibility purposes, a raw device is also exported with the block device. (For example, newfs(1M)).
The lofi driver isn't available in a zone and will not work inside a zone.
Закладки на сайте Проследить за страницей |
Created 1996-2024 by Maxim Chirkov Добавить, Поддержать, Вебмастеру |