/usr/share/perl5/Config/Model/models/Fstab/FsLine.pl is in libconfig-model-perl 2.047-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 | #
# This file is part of Config-Model
#
# This software is Copyright (c) 2013 by Dominique Dumont.
#
# This is free software, licensed under:
#
# The GNU Lesser General Public License, Version 2.1, February 1999
#
[
{
'class_description' => 'data of one /etc/fstab line',
'name' => 'Fstab::FsLine',
'copyright' => [
'2010,2011 Dominique Dumont'
],
'author' => [
'Dominique Dumont'
],
'license' => 'LGPL2',
'element' => [
'fs_spec',
{
'value_type' => 'uniline',
'warp' => {
'follow' => {
'f1' => '- fs_vfstype'
},
'rules' => [
'$f1 eq \'proc\'',
{
'default' => 'proc'
}
]
},
'mandatory' => 1,
'type' => 'leaf',
'description' => 'block special device or remote filesystem to be mounted'
},
'fs_file',
{
'value_type' => 'uniline',
'warp' => {
'follow' => {
'f1' => '- fs_vfstype'
},
'rules' => [
'$f1 eq \'proc\'',
{
'default' => '/proc'
},
'$f1 eq \'swap\'',
{
'default' => 'none'
}
]
},
'mandatory' => 1,
'type' => 'leaf',
'description' => 'mount point for the filesystem'
},
'fs_vfstype',
{
'value_type' => 'enum',
'help' => {
'proc' => 'Kernel info through a special file system',
'auto' => 'file system type is probed by the kernel when mounting the device',
'vfat' => 'Older Windows file system often used on removable media',
'ext3' => 'Common Linux file system with journaling ',
'usbfs' => 'USB pseudo file system. Gives a file system view of kernel data related to usb',
'iso9660' => 'CD-ROM or DVD file system',
'ignore' => 'unused disk partition',
'ext2' => 'Common Linux file system.',
'davfs' => 'WebDav access'
},
'mandatory' => 1,
'type' => 'leaf',
'description' => 'file system type',
'choice' => [
'auto',
'davfs',
'ext2',
'ext3',
'ext4',
'swap',
'proc',
'iso9660',
'vfat',
'usbfs',
'ignore',
'nfs',
'nfs4',
'none',
'ignore',
'debugfs'
]
},
'fs_mntopts',
{
'follow' => {
'f1' => '- fs_vfstype'
},
'type' => 'warped_node',
'rules' => [
'$f1 eq \'proc\'',
{
'config_class_name' => 'Fstab::CommonOptions'
},
'$f1 eq \'auto\'',
{
'config_class_name' => 'Fstab::CommonOptions'
},
'$f1 eq \'vfat\'',
{
'config_class_name' => 'Fstab::CommonOptions'
},
'$f1 eq \'swap\'',
{
'config_class_name' => 'Fstab::SwapOptions'
},
'$f1 eq \'ext2\'',
{
'config_class_name' => 'Fstab::Ext2FsOpt'
},
'$f1 eq \'ext3\'',
{
'config_class_name' => 'Fstab::Ext3FsOpt'
},
'$f1 eq \'ext4\'',
{
'config_class_name' => 'Fstab::Ext4FsOpt'
},
'$f1 eq \'usbfs\'',
{
'config_class_name' => 'Fstab::UsbFsOptions'
},
'$f1 eq \'davfs\'',
{
'config_class_name' => 'Fstab::CommonOptions'
},
'$f1 eq \'iso9660\'',
{
'config_class_name' => 'Fstab::Iso9660_Opt'
},
'$f1 eq \'nfs\'',
{
'config_class_name' => 'Fstab::CommonOptions'
},
'$f1 eq \'nfs4\'',
{
'config_class_name' => 'Fstab::CommonOptions'
},
'$f1 eq \'none\'',
{
'config_class_name' => 'Fstab::NoneOptions'
},
'$f1 eq \'debugfs\'',
{
'config_class_name' => 'Fstab::CommonOptions'
}
],
'description' => 'mount options associated with the filesystem'
},
'fs_freq',
{
'value_type' => 'enum',
'warp' => {
'follow' => {
'isbound' => '- fs_mntopts bind',
'fstyp' => '- fs_vfstype'
},
'rules' => [
'$fstyp eq "none" and $isbound',
{
'choice' => [
'0'
]
}
]
},
'default' => '0',
'type' => 'leaf',
'description' => 'Specifies if the file system needs to be dumped',
'choice' => [
'0',
'1'
]
},
'fs_passno',
{
'value_type' => 'integer',
'summary' => 'fsck pass number',
'warp' => {
'follow' => {
'isbound' => '- fs_mntopts bind',
'fstyp' => '- fs_vfstype'
},
'rules' => [
'$fstyp eq "none" and $isbound',
{
'max' => '0'
}
]
},
'default' => 0,
'type' => 'leaf',
'description' => 'used by the fsck(8) program to determine the order in which filesystem checks are done at reboot time'
}
]
}
]
;
|