File Coverage

blib/lib/Config/Model/models/Fstab/CommonOptions.pl
Criterion Covered Total %
statement 6 6 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod n/a
total 8 8 100.0


line stmt bran cond sub pod time code
1             #
2             # This file is part of Config-Model
3             #
4             # This software is Copyright (c) 2005-2022 by Dominique Dumont.
5             #
6             # This is free software, licensed under:
7             #
8             # The GNU Lesser General Public License, Version 2.1, February 1999
9             #
10 2     2   878 use strict;
  2         5  
  2         65  
11 2     2   10 use warnings;
  2         6  
  2         520  
12              
13             return [
14             {
15             'author' => [
16             'Dominique Dumont'
17             ],
18             'class_description' => 'options valid for all types of file systems.',
19             'copyright' => [
20             '2010,2011 Dominique Dumont'
21             ],
22             'element' => [
23             'async',
24             {
25             'description' => 'All I/O to the filesystem should be done asynchronously. (See also the sync option.)
26             ',
27             'type' => 'leaf',
28             'value_type' => 'boolean'
29             },
30             'atime',
31             {
32             'description' => 'Do not use the noatime feature, so the inode access time is controlled by kernel defaults. See also the descriptions of the relatime and strictatime mount options.',
33             'type' => 'leaf',
34             'value_type' => 'boolean'
35             },
36             'auto',
37             {
38             'description' => 'Can be mounted with the -a option of C<mount> command',
39             'type' => 'leaf',
40             'value_type' => 'boolean'
41             },
42             'dev',
43             {
44             'description' => 'Interpret character or block special devices on the filesystem.',
45             'type' => 'leaf',
46             'value_type' => 'boolean'
47             },
48             'exec',
49             {
50             'description' => 'Permit execution of binaries.',
51             'type' => 'leaf',
52             'value_type' => 'boolean'
53             },
54             'suid',
55             {
56             'description' => 'Honor set-user-ID and set-group-ID bits or file capabilities when executing programs from this filesystem.',
57             'type' => 'leaf',
58             'value_type' => 'boolean'
59             },
60             'group',
61             {
62             'description' => "Allow an ordinary user to mount the filesystem if one of that user\x{2019}s groups matches the group of the device. This option implies the options nosuid and nodev (unless overridden by subsequent options, as in the option line group,dev,suid).",
63             'type' => 'leaf',
64             'value_type' => 'boolean'
65             },
66             'mand',
67             {
68             'description' => 'Allow mandatory locks on this filesystem. See L<fcntl(2)>.',
69             'type' => 'leaf',
70             'value_type' => 'boolean'
71             },
72             'user',
73             {
74             'description' => 'Allow an ordinary user to mount the filesystem. The name of the mounting user is written to the mtab file (or to the private libmount file in /run/mount on systems without a regular mtab) so that this same user can unmount the filesystem again. This option implies the options noexec, nosuid, and nodev (unless overridden by subsequent options, as in the option line user,exec,dev,suid).',
75             'help' => {
76             '0' => 'Only root can mount the file system',
77             '1' => 'user can mount the file system'
78             },
79             'type' => 'leaf',
80             'value_type' => 'boolean'
81             },
82             'defaults',
83             {
84             'description' => 'Use the default options: rw, suid, dev, exec, auto, nouser, and async.
85              
86             Note that the real set of all default mount options depends on the kernel and filesystem type. See the beginning of this section for more details.',
87             'help' => {
88             '1' => 'option equivalent to rw, suid, dev, exec, auto, nouser, and async'
89             },
90             'type' => 'leaf',
91             'value_type' => 'boolean'
92             },
93             'rw',
94             {
95             'description' => 'Mount the filesystem read-write.',
96             'help' => {
97             '0' => 'read-only file system'
98             },
99             'type' => 'leaf',
100             'value_type' => 'boolean'
101             },
102             'relatime',
103             {
104             'description' => "Update inode access times relative to modify or change time. Access time is only updated if the previous access time was earlier than the current modify or change time. (Similar to noatime, but it doesn\x{2019}t break mutt(1) or other applications that need to know if a file has been read since the last time it was modified.)",
105             'type' => 'leaf',
106             'value_type' => 'boolean'
107             },
108             'umask',
109             {
110             'description' => 'Set the umask (the bitmask of the permissions that are not present). The default is the umask of the current process. The value is given in octal.',
111             'type' => 'leaf',
112             'value_type' => 'uniline'
113             }
114             ],
115             'license' => 'LGPL2',
116             'name' => 'Fstab::CommonOptions'
117             }
118             ]
119             ;
120