Config-Model
view release on metacpan or search on metacpan
lib/Config/Model/models/Fstab/VfatOpt.pl view on Meta::CPAN
#
# This file is part of Config-Model
#
# This software is Copyright (c) 2005-2022 by Dominique Dumont.
#
# This is free software, licensed under:
#
# The GNU Lesser General Public License, Version 2.1, February 1999
#
use strict;
use warnings;
use v5.20;
use utf8;
return [
{
'author' => [
'Dominique Dumont'
],
'copyright' => [
'2026, Dominique Dumont'
],
'element' => [
'uid',
{
'description' => 'Set the owner and group of all files. (Default: the UID and GID of the current process.)',
'type' => 'leaf',
'value_type' => 'uniline'
},
'gid',
'*uid',
'umask',
{
'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.',
'type' => 'leaf',
'value_type' => 'uniline'
},
'dmask',
{
'description' => 'Set the umask applied to directories only. The default is the umask of the current process. The value is given in octal.',
'type' => 'leaf',
'value_type' => 'uniline'
},
'fmask',
{
'description' => 'Set the umask applied to regular files only. The default is the umask of the current process. The value is given in octal.',
'type' => 'leaf',
'value_type' => 'uniline'
},
'allow_utime',
{
'description' => "=pod
This option controls the permission check of mtime/atime. Possible
values:
'.'=over
'.'=item 20
If the current process is in the group of the file\x{2019}s group ID, you can
change the timestamp.
'.'=item 2
Other users can change the timestamp.
'.'=back
The default is set from the above dmask option. (If the directory is
writable, utime(2) is also allowed. That is: ~dmask & 022.)
Normally utime(2) checks that the current process is the owner of the
file, or that it has the CAP_FOWNER capability. But FAT filesystems
don\x{2019}t have UID/GID on disk, so the normal check is too
inflexible. With this option you can relax it.
",
'type' => 'leaf',
'value_type' => 'uniline'
},
'check',
{
'choice' => [
'r',
'n',
's'
],
'description' => 'Check file names. Three different levels of pickiness can be chosen: r[elaxed] n[ormal] or s[trict]
( run in 0.537 second using v1.01-cache-2.11-cpan-acf6aa7dc9e )