1 See http://www.libelektra.org/Fstab for current version
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.
8 The elektra representation will be:
16 for every column in the /etc/fstab file.
18 The pseudoname can be any name for setting keys,
19 the will be generated when getting keys, so don't
22 the directory / will be called
25 all swap devices will be called
27 with a number from 00 on for XX
29 else the mountpoint without / char will be used.
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
38 At the other point there is the issue with the pseudonames,
39 you can't rely on the pseudoname you have set.
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.
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
49 which will be not like you desired!
53 setmntent is used, so it is only conforming to BSD 4.3 and linux.