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 
>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
NetBSD netbsd60.domain_not_set.invalid 6.0 NetBSD 6.0 (GENERIC) i386
Architecture: i386
Machine: i386
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
                    4        -      999               2       -    4999
                   24        -      999               6       -    4999
                   24        -      999              12       -       -
                  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      /remotes/desktop/home   nfs     rw       /remotes/deb5/xfs       nfs     rw      /remotes/deb5/home      nfs     rw /remotes/f80/home       nfs     rw       /remotes/sol10/ufs      nfs     rw      /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             3.9G       4.2M       3.9G   0% 
/remotes/deb5/xfs             19G       4.7G        13G  26% 
/remotes/deb5/home        17G       5.0G        11G  31% 
/remotes/f80/home                      44M       1.7M        38M   4% 
/remotes/sol10/ufs            229G       181G        36G  83% 
/remotes/desktop/home                     19G       669M        17G   3% 

netbsd60$ /sbin/ifconfig -a
        address: 08:00:27:d1:78:0b
        media: Ethernet autoselect (1000baseT full-duplex)
        status: active
        inet netmask 0xffffff00 broadcast
        inet6 fe80::a00:27ff:fed1:780b%wm0 prefixlen 64 scopeid 0x1

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.


Home | Main Index | Thread Index | Old Index