[ProgSoc] Strange ls behaviour on NFS mount
John Elliot
jj5 at jj5.net
Mon Aug 15 03:33:38 EST 2011
I'm seeing something strange on my NFS client. Have a look at the
following output from one of my sessions:
jj5 at hope:~/test$ ll
total 8
drwxr-xr-x 2 jj5 sudo 4096 Aug 14 17:26 ./
drwxr-xr-x 11 jj5 sudo 4096 Aug 14 17:26 ../
jj5 at hope:~/test$ vim test
jj5 at hope:~/test$ ll
total 8
drwxr-xr-x 2 jj5 sudo 4096 Aug 14 17:26 ./
drwxr-xr-x 11 jj5 sudo 4096 Aug 14 17:26 ../
-rw-r--r-- 1 4294967294 4294967294 5 Aug 14 17:26 test
jj5 at hope:~/test$ ll
total 12
drwxr-xr-x 2 jj5 sudo 4096 Aug 14 17:26 ./
drwxr-xr-x 11 jj5 sudo 4096 Aug 14 17:26 ../
-rw-r--r-- 1 jj5 sudo 5 Aug 14 17:26 test
~/test is a directory mounted on an NFS4 share.
As you can see, initially the directory is empty. I create a text file
called 'test' with vim, and save it. I then run ll again (ll is a
command alias for 'ls -alF', which is pretty standard) and in the output
the uid/gid are reported as a massive number. Then, immediately, I run
ll again, and the problem goes away. The second time I run ll the
correct uid/gid are reported.
What's up with that? Does anyone know?
More information about the Progsoc
mailing list