I have a RHEL 4 server in our organisation. One windows (2003) share is mounted on the server using CIFS. Output mount shows something like this:
//windows.server.fqdn/share on /mnt/shared1 type cifs (rw,mand)
/etc/fstab shows:
//windows.server.fqdn/share /mnt/shared1 cifs auto,uid=500,gid=500,username=windows_username,password=windows_password 0 0
Now in this shared1 folder, if I run 'ls', the output is different each time:
[user@server shared1]$ pwd
/mnt/shared1
[user@server shared1]$ ls | wc -l
85
[user@server shared1]$ ls | wc -l
172
[user@server shared1]$ ls | wc -l
1392
[user@server shared1]$ ls | wc -l
9109
[user@server shared1]$ ls | wc -l
7072
[user@server shared1]$ ls | wc -l
9109
[user@server shared1]$ ls | wc -l
4708
It should show 9109 files every time but I'm just not getting why it changes every single time. The data is quite static.
Any help would be appreciated.
Thanks