mirror of
https://git.proxmox.com/git/pve-common
synced 2025-08-14 04:03:39 +00:00
tools: Add mount flag constants
Signed-off-by: Filip Schauer <f.schauer@proxmox.com>
This commit is contained in:
parent
b792e8df81
commit
fe468fad74
@ -62,6 +62,20 @@ CLONE_NEWIPC
|
|||||||
CLONE_NEWUSER
|
CLONE_NEWUSER
|
||||||
CLONE_NEWPID
|
CLONE_NEWPID
|
||||||
CLONE_NEWNET
|
CLONE_NEWNET
|
||||||
|
MS_RDONLY
|
||||||
|
MS_NOSUID
|
||||||
|
MS_NODEV
|
||||||
|
MS_NOEXEC
|
||||||
|
MS_SYNCHRONOUS
|
||||||
|
MS_REMOUNT
|
||||||
|
MS_MANDLOCK
|
||||||
|
MS_DIRSYNC
|
||||||
|
MS_NOSYMFOLLOW
|
||||||
|
MS_NOATIME
|
||||||
|
MS_NODIRATIME
|
||||||
|
MS_BIND
|
||||||
|
MS_MOVE
|
||||||
|
MS_REC
|
||||||
);
|
);
|
||||||
|
|
||||||
my $pvelogdir = "/var/log/pve";
|
my $pvelogdir = "/var/log/pve";
|
||||||
@ -110,6 +124,23 @@ use constant {RENAME_NOREPLACE => (1 << 0),
|
|||||||
RENAME_EXCHANGE => (1 << 1),
|
RENAME_EXCHANGE => (1 << 1),
|
||||||
RENAME_WHITEOUT => (1 << 2)};
|
RENAME_WHITEOUT => (1 << 2)};
|
||||||
|
|
||||||
|
use constant {
|
||||||
|
MS_RDONLY => (1),
|
||||||
|
MS_NOSUID => (1 << 1),
|
||||||
|
MS_NODEV => (1 << 2),
|
||||||
|
MS_NOEXEC => (1 << 3),
|
||||||
|
MS_SYNCHRONOUS => (1 << 4),
|
||||||
|
MS_REMOUNT => (1 << 5),
|
||||||
|
MS_MANDLOCK => (1 << 6),
|
||||||
|
MS_DIRSYNC => (1 << 7),
|
||||||
|
MS_NOSYMFOLLOW => (1 << 8),
|
||||||
|
MS_NOATIME => (1 << 10),
|
||||||
|
MS_NODIRATIME => (1 << 11),
|
||||||
|
MS_BIND => (1 << 12),
|
||||||
|
MS_MOVE => (1 << 13),
|
||||||
|
MS_REC => (1 << 14),
|
||||||
|
};
|
||||||
|
|
||||||
sub run_with_timeout {
|
sub run_with_timeout {
|
||||||
my ($timeout, $code, @param) = @_;
|
my ($timeout, $code, @param) = @_;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user