NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

lib/47173: quota_get is not properly handling nfs mounts to the local machine



>Number:         47173
>Category:       lib
>Synopsis:       quota_get is not properly handling nfs mounts to the local 
>machine
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    lib-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Nov 08 21:05:00 +0000 2012
>Originator:     Brad Lanam
>Release:        NetBSD 6.0
>Organization:
>Environment:
NetBSD netbsd60.domain_not_set.invalid 6.0 NetBSD 6.0 (GENERIC) i386
Architecture: i386
Machine: i386
>Description:
A nfs mount pointing to the local machine causes quota_get() to fail.
quota_get() is working on remote nfs mounts.

# quota -u testuser
quota: /remotes/netbsd60/home: quota_get (objtype 0): Socket is not connected
quota: /remotes/netbsd60/home: quota_get (objtype 1): Socket is not connected

Disk quotas for user testuser (uid 1002):
  Filesystem   blocks    quota    limit   grace   files   quota   limit   grace
           /       14        -     1000               7       -    5000
/remotes/deb5/xfs
                    4        -      999               2       -    4999
/remotes/deb5/home
                   24        -      999               6       -    4999
/remotes/f80/home
                   24        -      999              12       -       -
/remotes/desktop/home
                  128        -      999              28       -    4999


netbsd60# cat /etc/exports
/home -network 192.168.2/24

netbsd60# cat /etc/fstab
# NetBSD /targetroot/etc/fstab
# See /usr/share/examples/fstab/ for more examples.
/dev/wd0a       /       ffs     rw,log,userquota,groupquota      1 1
/dev/wd0b       none    swap    sw,dp            0 0
kernfs          /kern   kernfs  rw
ptyfs           /dev/pts        ptyfs   rw
procfs          /proc   procfs  rw
/dev/cd0a       /cdrom  cd9660  ro,noauto
192.168.2.51:/exports/home      /remotes/desktop/home   nfs     rw
192.168.2.46:/exports/xfs       /remotes/deb5/xfs       nfs     rw
192.168.2.46:/exports/home      /remotes/deb5/home      nfs     rw
192.168.2.58:/usr/home/testuser /remotes/f80/home       nfs     rw
192.168.2.55:/ufs       /remotes/sol10/ufs      nfs     rw
192.168.2.54:/home      /remotes/netbsd60/home  nfs     rw

netbsd60$ ls /remotes/netbsd60/home
bll       testuser

# df -h
Filesystem                            Size       Used      Avail %Cap Mounted on
/dev/wd0a                              19G       669M        17G   3% /
kernfs                                1.0K       1.0K         0B 100% /kern
ptyfs                                 1.0K       1.0K         0B 100% /dev/pts
procfs                                4.0K       4.0K         0B 100% /proc
192.168.2.46:/exports/xfs             3.9G       4.2M       3.9G   0% 
/remotes/deb5/xfs
192.168.2.46:/exports/home             19G       4.7G        13G  26% 
/remotes/deb5/home
192.168.2.58:/usr/home/testuser        17G       5.0G        11G  31% 
/remotes/f80/home
192.168.2.55:/ufs                      44M       1.7M        38M   4% 
/remotes/sol10/ufs
192.168.2.51:/exports/home            229G       181G        36G  83% 
/remotes/desktop/home
192.168.2.54:/home                     19G       669M        17G   3% 
/remotes/netbsd60/home

netbsd60$ /sbin/ifconfig -a
wm0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        
capabilities=2bf80<TSO4,IP4CSUM_Rx,IP4CSUM_Tx,TCP4CSUM_Rx,TCP4CSUM_Tx,UDP4CSUM_Rx,UDP4CSUM_Tx,TCP6CSUM_Tx,UDP6CSUM_Tx>
        enabled=0
        address: 08:00:27:d1:78:0b
        media: Ethernet autoselect (1000baseT full-duplex)
        status: active
        inet 192.168.2.54 netmask 0xffffff00 broadcast 192.168.2.255
        inet6 fe80::a00:27ff:fed1:780b%wm0 prefixlen 64 scopeid 0x1

>How-To-Repeat:
Turn on quotas for a filesystem.
Set quotas on a user.
Create a nfs mount pointing to the same machine.
Check the quotas for that user.

>Fix:



Home | Main Index | Thread Index | Old Index