Skip site navigation (1)Skip section navigation (2)
Date:      5 Jun 2002 12:28:16 -0000
From:      Peter van Dijk <peter@dataloss.nl>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   bin/38918: edquota breaks silently when quota-marked filesystems are not mounted
Message-ID:  <20020605122816.96755.qmail@useful.dataloss.nl>

next in thread | raw e-mail | index | archive | help

>Number:         38918
>Category:       bin
>Synopsis:       edquota breaks silently when quota-marked filesystems are not mounted
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jun 05 05:30:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Peter van Dijk
>Release:        FreeBSD 4.4-RELEASE-p11 i386
>Organization:
-
>Environment:
System: FreeBSD useful.dataloss.nl 4.4-RELEASE-p11 FreeBSD 4.4-RELEASE-p11 #0: Sun Apr 21 19:49:46 CEST 2002 root@useful.dataloss.nl:/home2/usr2/obj/home2/usr2/src/sys/USEFUL i386

useful# cat /etc/fstab
# Device                Mountpoint      FStype  Options         Dump    Pass#
/dev/da0s1b             none            swap    sw              0       0
/dev/da0s1a             /               ufs     rw              1       1
/dev/da0s1g             /home           ufs     rw,userquota            2      2
/dev/da0s1f             /usr            ufs     rw              2       2
/dev/da0s1e             /var            ufs     rw              2       2
/dev/ad2s1e            /home/private   ufs     rw,userquota,groupquota,noauto 0	0
/dev/ad1s1e             /home2          ufs     rw      0       0
proc                    /proc           procfs  rw              0       0 


>Description:

with /home/private not mounted, 'edquota user' gives me a file to edit
like:
Quotas for user add:
/home: blocks in use: 15084, limits (soft = 20000, hard = 30000)
        inodes in use: 706, limits (soft = 0, hard = 0)
/home/private: blocks in use: 15084, limits (soft = 20000, hard = 30000)
        inodes in use: 706, limits (soft = 0, hard = 0)


When I edit the values for /home and exit edquota, no error is reported,
but no quota is updated.

>How-To-Repeat:
Mount a filesystem, turn on quota on that system, and put a subdir of that
filesystem in fstab, without mounting anything on it. edquota something
on the mounted filesystem, and then check if edquota actually updated anything.

>Fix:
fix: make edquota check if a filesystem is mounted, or at least make sure
it reports error conditions.

workaround: comment any filesystems in fstab that are not actually mounted.
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020605122816.96755.qmail>