Grep mount binds differently #706

Related Virtualmin patch. [0900fdc](0900fdc083 (diff-d93c5e3420554c840d321dbc5e2fca0b))
This commit is contained in:
Ilia Rostovtsev
2017-11-29 10:38:29 +03:00
committed by GitHub
parent 59228089b6
commit c39a9e2a3d

View File

@@ -84,7 +84,7 @@ sub quota_can
{
my %exclude_mounts;
if (&has_command("findmnt")) {
%exclude_mounts = map { $_ => 1 } split( /\n/m, backquote_command('findmnt | grep -oP \'\[\K[^\]]+\'') );
%exclude_mounts = map { $_ => 1 } split( /\n/m, backquote_command('findmnt -r | grep -oP \'^(\S+)(?=.*\[\/)\'') );
}
# Not possible on bind mounts