2003-07-13 16:01:56

by Ivan Gyurdiev

[permalink] [raw]
Subject: 2.5.75 and xfs quotas

Perhaps I'm missing something silly, but with both generic quota v2 and xfs
quota enabled (and xfs) all compiled into the kernel:
===========================================================
[root@cobra linux]# mount -o remount /dev/hda8

strace:
mount("/dev/hda8", "/", "xfs", MS_REMOUNT|0xc0ed0000, 0x805be00) = 0
===========================================================
[root@cobra linux]# mount -o remount,quota /dev/hda8
mount: / not mounted already, or bad option

strace:
mount("/dev/hda8", "/", "xfs", MS_REMOUNT|0xc0ed0000, 0x805be38) = -1 EINVAL
(Invalid argument)
===========================================================









2003-07-14 00:08:36

by Ivan Gyurdiev

[permalink] [raw]
Subject: Re: 2.5.75 and xfs quotas

> There will be a more meaningful message in your system log.

There is...quota is unsupported. But I figured that out from the rest of it.

> This (remount,quota) is not implemented by the XFS kernel code,
> and hasn't ever been, although there was a time when it wouldn't
> have reported an error when attempting this. Currently, quota
> can only be enabled during the initial mount. For your root fs
> this means using "rootflags=quota" during startup.

Okay, thank you.
Perhaps that's what the warning should say rather than "quota option
unsupported"?




2003-07-14 00:17:00

by Ivan Gyurdiev

[permalink] [raw]
Subject: Re: 2.5.75 and xfs quotas

> There will be a more meaningful message in your system log.

Well the exact message is actually:
XFS: unknown mount option [quota].

2003-07-13 23:34:37

by Nathan Scott

[permalink] [raw]
Subject: Re: 2.5.75 and xfs quotas

On Sun, Jul 13, 2003 at 10:25:56AM -0400, Ivan Gyurdiev wrote:
> Perhaps I'm missing something silly, but with both generic quota v2 and xfs
> quota enabled (and xfs) all compiled into the kernel:
> ===========================================================
> [root@cobra linux]# mount -o remount /dev/hda8
>
> strace:
> mount("/dev/hda8", "/", "xfs", MS_REMOUNT|0xc0ed0000, 0x805be00) = 0
> ===========================================================
> [root@cobra linux]# mount -o remount,quota /dev/hda8
> mount: / not mounted already, or bad option

There will be a more meaningful message in your system log.

> strace:
> mount("/dev/hda8", "/", "xfs", MS_REMOUNT|0xc0ed0000, 0x805be38) = -1 EINVAL
> (Invalid argument)
> ===========================================================

This (remount,quota) is not implemented by the XFS kernel code,
and hasn't ever been, although there was a time when it wouldn't
have reported an error when attempting this. Currently, quota
can only be enabled during the initial mount. For your root fs
this means using "rootflags=quota" during startup.

cheers.

--
Nathan