[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freebsd-bugs
Subject:    bin/6183: quota hangups
From:       lampa () fee ! vutbr ! cz
Date:       1998-03-31 9:41:19
[Download RAW message or body]


> Number:         6183
> Category:       bin
> Synopsis:       quota hangups
> Confidential:   no
> Severity:       non-critical
> Priority:       medium
> Responsible:    freebsd-bugs
> State:          open
> Quarter:
> Keywords:
> Date-Required:
> Class:          change-request
> Submitter-Id:   current-users
> Arrival-Date:   Tue Mar 31 01:50:01 PST 1998
> Last-Modified:
> Originator:     Petr Lampa
> Organization:
Dept. of Computer Science
> Release:        2.2.2,2.2.5,2.2.6
> Environment:
FreeBSD kazi.dcse.fee.vutbr.cz 2.2.5-STABLE FreeBSD 2.2.5-STABLE #0: Wed Feb 25 \
11:49:00 MET 1998  lampa@boco.fee.vutbr.cz:/home3/src/relcur/compile/KAZI  i386

> Description:
The quota command hangs if
1. NFS server is down
2. Root nameservers are not accessible (Internet connection failure) and automounter \
is running If quota is executed in /etc/profile, users cannot login (or have
to wait for logn timeouts). Each execution of quota on system with
automounter generates unnecessary requests to root nameservers 
(to resolve address 'pid250@machine').
> How-To-Repeat:

> Fix:
problem #1: use non blocking version of getmntinfo()
problem #2: don't try to call rquotad and resolve automounter \
pid(pid250@machine:/pub) in getnfsquota()  
*** quota.c.old Mon Sep 15 12:19:35 1997
--- quota.c     Tue Mar 31 11:11:53 1998
***************
*** 460,466 ****

        qup = quphead = (struct quotause *)0;

!       nfst = getmntinfo(&fst, MNT_WAIT);
        if (nfst == 0)
                errx(2, "no filesystems mounted!");
        setfsent();
--- 460,466 ----

        qup = quphead = (struct quotause *)0;

!       nfst = getmntinfo(&fst, MNT_NOWAIT);
        if (nfst == 0)
                errx(2, "no filesystems mounted!");
        setfsent();
***************
*** 621,626 ****
--- 621,627 ----
                *cp = ':';
                return (0);
        }
+       if (strncmp(fst->f_mntfromname, "pid", 3) == 0 &&
+           strchr(fst->f_mntfromname, '@') != NULL) return(0);

        gq_args.gqa_pathp = cp + 1;
        gq_args.gqa_uid = id;


> Audit-Trail:
> Unformatted:

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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic