Git init
[pkgs/e/elektra.git] / src / backends / fstab / README
1 See http://www.libelektra.org/Fstab for current version
2
3 Fstab is a implementation of a parser and generator of the /etc/fstab file.
4 It can be used as a [[Backends|Backend]] for Elektra.
5
6 == Storage ==
7
8 The elektra representation will be:
9  pseudoname/device
10  pseudoname/mpoint
11  pseudoname/type
12  pseudoname/options
13  pseudoname/dumpfreq
14  pseudoname/passno
15
16 for every column in the /etc/fstab file.
17
18 The pseudoname can be any name for setting keys,
19 the will be generated when getting keys, so don't
20 expect the same name.
21
22 the directory / will be called
23  rootfs
24
25 all swap devices will be called
26  swapXX
27 with a number from 00 on for XX
28
29 else the mountpoint without / char will be used.
30
31
32 == Capabilities ==
33
34 setmntent is used and restrict the capabilities in many ways.
35 At one point you can't use any comments, they will be generated
36 automatically.
37
38 At the other point there is the issue with the pseudonames,
39 you can't rely on the pseudoname you have set.
40
41 The biggest issue is that you can't change or delete existing
42 entries. All entries you set will be appended to the other filesystems.
43
44 So if you get the filesystems and change the type of the filesystem
45 of the rootfs and set it again the resulting fstab will be like:
46  /dev/sda6       /               ext3>----   >----defaults,errors=remount-ro 0 1
47  /dev/sda6       /               jfs>----   >----defaults,errors=remount-ro 0 1
48
49 which will be not like you desired!
50
51 == Portability ==
52
53 setmntent is used, so it is only conforming to BSD 4.3 and linux.