lkml.org 
[lkml]   [2004]   [Sep]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: OOM & [OT] util-linux-2.12e
Olaf Hering wrote:

> On Mon, Sep 20, Helge Hafting wrote:
>
>
>
>>Using a mtab that is a link to /proc/mounts fails with quota too.
>>Quta tools read /etc/mtab looking for "usrquota" and or "grpquota"
>>mount options. These appear in a normal /etc/mtab but not in /proc/mounts,
>>
>>
>
>I have never played with quota. But: does the kernel or a userland tool
>if quota is active for a mount point? smells like a kernel bug.
>
>
The kernel must know that quota is in use, or it'd be unable to
refuse the syscalls when someone tries to go over his quota.

From "man mount":
grpquota / noquota / quota / usrquota
These options are accepted but ignored. (However, quota
utili‐
ties may react to such strings in /etc/fstab.)

quota utilities indeed react to such strings in /etc/mtab too.

Qutas aren't actually enabled when the mount options are used,
they are enabled when the "quotaon" tool runs. I guess it uses
some special syscall or ioctl to really turn quota on.

Doing it at mount time instead, byt actually using those options,
seems saner to me. But I guess they had their reasons. . .

Helge Hafting


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:06    [W:1.058 / U:0.332 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site