1lofi(7D) Devices lofi(7D)
2
3
4
6 lofi - Loopback file driver
7
9 The lofi file driver exports a file as a block device, enabling system
10 utilities such as fstyp(1M), fsck(1M) and mount(1M) to operate on
11 underlying file system images (including CD-ROM and FAT floppy images)
12 contained on the block device. Reads and writes to the block device are
13 translated to reads and writes on the exported file. See lofiadm(1M)
14 for examples.
15
16
17 File block device entries are contained in /dev/lofi. The /dev/rlofi
18 file contains the character (or raw) device entries. Entries are in the
19 form of decimal numbers and are assigned through lofiadm(1M). When
20 created, these device entries are owned by root, in group sys and have
21 permissions of 0600. Ownership, group, and permission settings can be
22 altered, however there may be ramifications. See lofiadm(1M) for more
23 information.
24
25
26 lofi devices can be compressed. See lofiadm(1M) for more information.
27
28
29 Files exported through lofi can also be encrypted. See lofiadm(1M) for
30 details on how to specify encryption keys.
31
33 /dev/lofictl
34
35 Master control device
36
37
38 /dev/lofi/n
39
40 Block device for file n
41
42
43 /dev/rlofi/n
44
45 Character device for file n
46
47
48 /kernel/drv/lofi
49
50 32-bit driver
51
52
53 /kernel/drv/sparcv9/lofi
54
55 64-bit driver (SPARC)
56
57
58 /kernel/drv/amd64/lofi
59
60 64-bit driver (x86)
61
62
63 /kernel/drv/lofi.conf
64
65 Driver configuration file. (Do not alter).
66
67
69 See attributes(5) for a description of the following attributes:
70
71
72
73
74 ┌─────────────────────────────┬─────────────────────────────┐
75 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
76 ├─────────────────────────────┼─────────────────────────────┤
77 │Architecture │SPARC, x86 │
78 ├─────────────────────────────┼─────────────────────────────┤
79 │Availability │SUNWcsr, SUNWcarx.u │
80 ├─────────────────────────────┼─────────────────────────────┤
81 │Interface Stability │Committed │
82 └─────────────────────────────┴─────────────────────────────┘
83
85 fstyp(1M), fsck(1M), mount(1M), lofiadm(1M), newfs(1M), attributes(5),
86 lofs(7FS)
87
89 Just as you would not directly access a disk device that has mounted
90 file systems, you should not access a file associated with a block
91 device except through the lofi file driver.
92
93
94 For compatibility purposes, a raw device is also exported with the
95 block device. (For example, newfs(1M)).
96
97
98 The lofi driver isn't available in a zone and will not work inside a
99 zone.
100
101
102
103SunOS 5.11 25 Nov 2008 lofi(7D)