From owner-freebsd-bugs Wed Jun 5 5:32:36 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id EF4EA37B4F0 for ; Wed, 5 Jun 2002 05:30:01 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g55CU1W57071; Wed, 5 Jun 2002 05:30:01 -0700 (PDT) (envelope-from gnats) Received: from useful.dataloss.nl (useful.dataloss.nl [193.109.122.194]) by hub.freebsd.org (Postfix) with SMTP id EE67E37B495 for ; Wed, 5 Jun 2002 05:28:23 -0700 (PDT) Received: (qmail 96756 invoked by uid 0); 5 Jun 2002 12:28:16 -0000 Message-Id: <20020605122816.96755.qmail@useful.dataloss.nl> Date: 5 Jun 2002 12:28:16 -0000 From: Peter van Dijk Reply-To: Peter van Dijk To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: bin/38918: edquota breaks silently when quota-marked filesystems are not mounted Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >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