From owner-freebsd-bugs Mon Oct 1 7:40: 5 2001 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 E0F3E37B409 for ; Mon, 1 Oct 2001 07:40:00 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f91Ee0750149; Mon, 1 Oct 2001 07:40:00 -0700 (PDT) (envelope-from gnats) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id B393537B419 for ; Mon, 1 Oct 2001 07:39:03 -0700 (PDT) Received: (from nobody@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f91Ed3W50014; Mon, 1 Oct 2001 07:39:03 -0700 (PDT) (envelope-from nobody) Message-Id: <200110011439.f91Ed3W50014@freefall.freebsd.org> Date: Mon, 1 Oct 2001 07:39:03 -0700 (PDT) From: Minas To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: kern/30958: QUOTA with 0 bytes in quota.user hangs up the system in boot 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: 30958 >Category: kern >Synopsis: QUOTA with 0 bytes in quota.user hangs up the system in boot >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Oct 01 07:40:00 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Minas >Release: 4.4-RELEASE FreeBSD 4.4-RELEASE #1: >Organization: DUTH >Environment: FreeBSD ikaros.ee.duth.gr 4.4-RELEASE FreeBSD 4.4-RELEASE #1: Thu Sep 27 17:11:36 EEST 2001 root@ikaros.ee.duth.gr:/usr/src/sys/compile/IKAROS_D i386 >Description: I disabled in boot time quotacheck. I compiled the kernel with quota support. I 'touch quota.user' on every filesystem. So quota.user had 0 bytes length. I edited fstab to include option with userquota in mount. When the system rebooted, all the initialization scripts where executed and the login prompt appear. When I logged in as root after a couple of seconds the system hang. It din't appear any message on the console or the syslog. The system responding at ping from the network, but the shell didn't respond to any command. I tried to login in ttyv? but the login process hang too. I had to hard reboot the machine. For 4-5 times this was happening, until bypass the quota-on command and I tried a quotacheck on the filesystem. Then the problem had been solved. >How-To-Repeat: Enable quotas on the kernel. Touch quota.user. DO NOT do quotacheck (thus quota.user is 0 bytes) and reboot. The machine will hung up after a couple of sec after the booting is complete and the logging prompt appear. >Fix: Maybe the quotaon command has to check the file quota.user if it has 0 bytes, and if this is valid it has to do a quotacheck on the filesystem. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message