[Bug 297626] nfs mount of a NFSv3 share will hang if "Permission denied"

[email protected]
Newsgroups gmane.os.freebsd.devel.file-systems
Message-ID <[email protected]/bugzilla/>
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=297626

Dennis Clarke <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |Works As Intended
             Status|New                         |Closed

--- Comment #6 from Dennis Clarke <[email protected]> ---
Could be retrycnt=0 is the default and that causes the behavior :



hydra# mount -o retrycnt=1 pluto:/opt/bulk/passport /mnt/pluto
[tcp] pluto:/opt/bulk/passport: Permission denied
hydra# echo $?
1


Yup.


hydra# tshark -r  out.no_retry   --print
    1   0.000000 192.168.2.44 → 192.168.2.42 DNS 80 Standard query 0x09fe A
pluto.bw.genunix.com
    2   0.000166 192.168.2.42 → 192.168.2.44 DNS 96 Standard query response
0x09fe A pluto.bw.genunix.com A 192.168.2.42
    3   0.000280 192.168.2.44 → 192.168.2.42 DNS 80 Standard query 0x5dff AAAA
pluto.bw.genunix.com
    4   0.000461 192.168.2.42 → 192.168.2.44 DNS 125 Standard query response
0x5dff AAAA pluto.bw.genunix.com SOA ns1.bw.genunix.com
    5   0.001086 192.168.2.44 → 192.168.2.42 DNS 80 Standard query 0x41bb A
pluto.bw.genunix.com
    6   0.001221 192.168.2.42 → 192.168.2.44 DNS 96 Standard query response
0x41bb A pluto.bw.genunix.com A 192.168.2.42
    7   0.001605 192.168.2.44 → 192.168.2.42 TCP 74 779 → 111 [SYN] Seq=0
Win=65535 Len=0 MSS=1460 WS=256 SACK_PERM TSval=3216410759 TSecr=0
    8   0.001721 192.168.2.42 → 192.168.2.44 TCP 74 111 → 779 [SYN, ACK] Seq=0
Ack=1 Win=65535 Len=0 MSS=1460 WS=256 SACK_PERM TSval=3591409999
TSecr=3216410759
    9   0.001741 192.168.2.44 → 192.168.2.42 TCP 66 779 → 111 [ACK] Seq=1 Ack=1
Win=65792 Len=0 TSval=3216410759 TSecr=3591409999
   10   0.001965 192.168.2.44 → 192.168.2.42 Portmap 126 V2 GETPORT Call
NFS(100003) V:3 TCP
   11   0.002109 192.168.2.42 → 192.168.2.44 Portmap 98 V2 GETPORT Reply (Call
In 10) Port:2049
   12   0.002147 192.168.2.44 → 192.168.2.42 TCP 66 779 → 111 [FIN, ACK] Seq=61
Ack=33 Win=65792 Len=0 TSval=3216410760 TSecr=3591409999
   13   0.002189 192.168.2.44 → 192.168.2.42 TCP 74 724 → 2049 [SYN] Seq=0
Win=65535 Len=0 MSS=1460 WS=256 SACK_PERM TSval=2859093226 TSecr=0
   14   0.002253 192.168.2.42 → 192.168.2.44 TCP 66 111 → 779 [ACK] Seq=33
Ack=62 Win=65792 Len=0 TSval=3591409999 TSecr=3216410760
   15   0.002259 192.168.2.42 → 192.168.2.44 TCP 74 2049 → 724 [SYN, ACK] Seq=0
Ack=1 Win=65535 Len=0 MSS=1460 WS=256 SACK_PERM TSval=933522355
TSecr=2859093226
   16   0.002267 192.168.2.44 → 192.168.2.42 TCP 66 724 → 2049 [ACK] Seq=1
Ack=1 Win=65792 Len=0 TSval=2859093226 TSecr=933522355
   17   0.002268 192.168.2.42 → 192.168.2.44 TCP 66 111 → 779 [FIN, ACK] Seq=33
Ack=62 Win=65792 Len=0 TSval=3591409999 TSecr=3216410760
   18   0.002274 192.168.2.44 → 192.168.2.42 TCP 66 779 → 111 [ACK] Seq=62
Ack=34 Win=65792 Len=0 TSval=3216410760 TSecr=3591409999
   19   0.002301 192.168.2.44 → 192.168.2.42 NFS 110 V3 NULL Call
   20   0.002417 192.168.2.42 → 192.168.2.44 TCP 66 2049 → 724 [ACK] Seq=1
Ack=45 Win=7456768 Len=0 TSval=933522355 TSecr=2859093226
   21   0.002421 192.168.2.42 → 192.168.2.44 NFS 94 V3 NULL Reply (Call In 19)
   22   0.002442 192.168.2.44 → 192.168.2.42 TCP 66 724 → 2049 [FIN, ACK]
Seq=45 Ack=29 Win=65792 Len=0 TSval=2859093226 TSecr=933522355
   23   0.002480 192.168.2.44 → 192.168.2.42 TCP 74 849 → 111 [SYN] Seq=0
Win=65535 Len=0 MSS=1460 WS=256 SACK_PERM TSval=3740461774 TSecr=0
   24   0.002516 192.168.2.42 → 192.168.2.44 TCP 66 2049 → 724 [ACK] Seq=29
Ack=46 Win=7456768 Len=0 TSval=933522355 TSecr=2859093226
   25   0.002603 192.168.2.42 → 192.168.2.44 TCP 66 2049 → 724 [FIN, ACK]
Seq=29 Ack=46 Win=7456768 Len=0 TSval=933522355 TSecr=2859093226
   26   0.002607 192.168.2.44 → 192.168.2.42 TCP 66 724 → 2049 [ACK] Seq=46
Ack=30 Win=65792 Len=0 TSval=2859093226 TSecr=933522355
   27   0.002608 192.168.2.42 → 192.168.2.44 TCP 74 111 → 849 [SYN, ACK] Seq=0
Ack=1 Win=65535 Len=0 MSS=1460 WS=256 SACK_PERM TSval=3444749552
TSecr=3740461774
   28   0.002616 192.168.2.44 → 192.168.2.42 TCP 66 849 → 111 [ACK] Seq=1 Ack=1
Win=65792 Len=0 TSval=3740461774 TSecr=3444749552
   29   0.002647 192.168.2.44 → 192.168.2.42 Portmap 126 V2 GETPORT Call
MOUNT(100005) V:3 TCP
   30   0.002753 192.168.2.42 → 192.168.2.44 Portmap 98 V2 GETPORT Reply (Call
In 29) Port:876
   31   0.002778 192.168.2.44 → 192.168.2.42 TCP 66 849 → 111 [FIN, ACK] Seq=61
Ack=33 Win=65792 Len=0 TSval=3740461774 TSecr=3444749553
   32   0.002808 192.168.2.44 → 192.168.2.42 TCP 74 764 → 876 [SYN] Seq=0
Win=65535 Len=0 MSS=1460 WS=256 SACK_PERM TSval=3368533221 TSecr=0
   33   0.002858 192.168.2.42 → 192.168.2.44 TCP 66 111 → 849 [ACK] Seq=33
Ack=62 Win=65792 Len=0 TSval=3444749553 TSecr=3740461774
   34   0.002862 192.168.2.42 → 192.168.2.44 TCP 74 876 → 764 [SYN, ACK] Seq=0
Ack=1 Win=65535 Len=0 MSS=1460 WS=256 SACK_PERM TSval=3155569644
TSecr=3368533221
   35   0.002869 192.168.2.44 → 192.168.2.42 TCP 66 764 → 876 [ACK] Seq=1 Ack=1
Win=65792 Len=0 TSval=3368533222 TSecr=3155569644
   36   0.002871 192.168.2.42 → 192.168.2.44 TCP 66 111 → 849 [FIN, ACK] Seq=33
Ack=62 Win=65792 Len=0 TSval=3444749553 TSecr=3740461774
   37   0.002874 192.168.2.44 → 192.168.2.42 TCP 66 849 → 111 [ACK] Seq=62
Ack=34 Win=65792 Len=0 TSval=3740461775 TSecr=3444749553
   38   0.002975 192.168.2.44 → 192.168.2.42 MOUNT 170 V3 MNT Call
/opt/bulk/passport
   39   0.003625 192.168.2.42 → 192.168.2.44 MOUNT 98 V3 MNT Reply (Call In 38)
Error:ERR_ACCESS
   40   0.003652 192.168.2.44 → 192.168.2.42 TCP 66 764 → 876 [FIN, ACK]
Seq=105 Ack=33 Win=65792 Len=0 TSval=3368533222 TSecr=3155569645
   41   0.003740 192.168.2.42 → 192.168.2.44 TCP 66 876 → 764 [ACK] Seq=33
Ack=106 Win=65792 Len=0 TSval=3155569645 TSecr=3368533222
   42   0.003744 192.168.2.42 → 192.168.2.44 TCP 66 876 → 764 [FIN, ACK] Seq=33
Ack=106 Win=65792 Len=0 TSval=3155569645 TSecr=3368533222
   43   0.003748 192.168.2.44 → 192.168.2.42 TCP 66 764 → 876 [ACK] Seq=106
Ack=34 Win=65792 Len=0 TSval=3368533222 TSecr=3155569645


After the ERR_ACCESS the return condition is given.

Works as intended, by default, stupidly in an infinite 60sec loop.

-- 
You are receiving this mail because:
You are the assignee for the bug.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.