Project

General

Profile

Bug #4384

nfsv4 server issue

Added by Bill Dieckmann almost 6 years ago. Updated almost 6 years ago.

Status:
New
Priority:
Normal
Assignee:
Category:
nfs - NFS server and client
Start date:
2013-12-09
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage

Description

Using Centos 6.5, in an nfsv4 mounted directory, touch zero ; echo ‘’ > one ; git init ; git add zero one ; git commit -m x ; rm zero one ; git checkout -f ; ls -n. Served by OI151a7 or Solaris 11.1 I get:
-rwxrwxr-x. 1 500 500 1 Dec 8 19:55 one
-rwxrwxr-x. 1 500 500 0 Dec 8 19:55 zero,
no surprise, but for OmniOS-151006y or OmniOS-151008 I see 6 extra bytes in the length-1 file and a random modification time for the length-0 file, for example:
-rwxrwxrwx. 1 500 500 7 Dec 8 23:32 one
-rwxrwxrwx. 1 500 500 0 Mar 9 1972 zero
$ hexdump -C one
00000000 e2 80 98 e2 80 99 0a |.......|
00000007
I've attached a snoop output in raw and summary forms.


Files

nfs4_snoop.txt (114 KB) nfs4_snoop.txt snoop summary output Bill Dieckmann, 2013-12-09 04:37 AM
nfs4.snoop (269 KB) nfs4.snoop snoop raw output Bill Dieckmann, 2013-12-09 04:37 AM

History

#1

Updated by Marcel Telka almost 6 years ago

  • Assignee set to Marcel Telka

Those 7 bytes in the one file is exactly what you wrote there:

$ cat one 
‘’
$ ls -l
total 2
-rw-r--r-- 1 marcel staff 7 dec  9 09:42 one
-rw-r--r-- 1 marcel staff 0 dec  9 09:42 zero
$ od -t x1 one 
0000000 e2 80 98 e2 80 99 0a
0000007
$

So no surprise and no bug in illumos.

#2

Updated by Marcel Telka almost 6 years ago

The problem with mtime of file zero seems to be related to this SETATTR failure in packet 887:

884 4:28:43.82474 172.16.240.185 -> 172.16.240.209 NFS C 4 () PUTFH FH=7ED8 OPEN zero OT=CR(E) SQ=2305 CT=N AC=W DN=N OO=435E
 GETFH GETATTR 10011a 30a23a 
885 4:28:43.82482 172.16.240.209 -> 172.16.240.185 NFS R 4 () NFS4_OK PUTFH NFS4_OK OPEN NFS4_OK ST=1B07:1 RF=PL DT=N GETFH N
FS4_OK FH=94C8 GETATTR NFS4_OK 
886 4:28:43.82508 172.16.240.185 -> 172.16.240.209 NFS C 4 () PUTFH FH=94C8 SETATTR ST=1B07:1 GETATTR 10011a 30a23a 
887 4:28:43.82514 172.16.240.209 -> 172.16.240.185 NFS R 4 () NFS4ERR_PERM PUTFH NFS4_OK SETATTR 0 0 
888 4:28:43.82527 172.16.240.185 -> 172.16.240.209 NFS C 4 () PUTFH FH=94C8 GETATTR 10011a 30a23a 
889 4:28:43.82530 172.16.240.209 -> 172.16.240.185 NFS R 4 () NFS4_OK PUTFH NFS4_OK GETATTR NFS4_OK 
890 4:28:43.82544 172.16.240.185 -> 172.16.240.209 NFS C 4 () PUTFH FH=94C8 CLOSE SQ=2306 OST=1B07:1 GETATTR 18 300000 
891 4:28:43.82547 172.16.240.209 -> 172.16.240.185 NFS R 4 () NFS4_OK PUTFH NFS4_OK CLOSE OST=1B07:2 GETATTR NFS4_OK

Also available in: Atom PDF