o Extend rev. 1.75 and restore an ability to specify a non-default
quota files location. Submitted by: Kostik Belousov
This commit is contained in:
parent
feefdb0ceb
commit
6e74fb9dff
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=158400
@ -120,6 +120,9 @@ remountable_fs_names[] = {
|
|||||||
0
|
0
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static const char userquotaeq[] = "userquota=";
|
||||||
|
static const char groupquotaeq[] = "groupquota=";
|
||||||
|
|
||||||
static int
|
static int
|
||||||
use_mountprog(const char *vfstype)
|
use_mountprog(const char *vfstype)
|
||||||
{
|
{
|
||||||
@ -634,8 +637,14 @@ mangle(options, argcp, argv)
|
|||||||
continue;
|
continue;
|
||||||
} else if (strcmp(p, "userquota") == 0) {
|
} else if (strcmp(p, "userquota") == 0) {
|
||||||
continue;
|
continue;
|
||||||
|
} else if (strncmp(p, userquotaeq,
|
||||||
|
sizeof(userquotaeq) - 1) == 0) {
|
||||||
|
continue;
|
||||||
} else if (strcmp(p, "groupquota") == 0) {
|
} else if (strcmp(p, "groupquota") == 0) {
|
||||||
continue;
|
continue;
|
||||||
|
} else if (strncmp(p, groupquotaeq,
|
||||||
|
sizeof(groupquotaeq) - 1) == 0) {
|
||||||
|
continue;
|
||||||
} else if (*p == '-') {
|
} else if (*p == '-') {
|
||||||
argv[argc++] = p;
|
argv[argc++] = p;
|
||||||
p = strchr(p, '=');
|
p = strchr(p, '=');
|
||||||
|
Loading…
Reference in New Issue
Block a user