Operating System - HP-UX
1748252 Members
3949 Online
108760 Solutions
New Discussion юеВ

Re: Very strange behaviour listing a directory

 
R.O.
Esteemed Contributor

Very strange behaviour listing a directory

Hi all,

This is a weird thing. We have a directory mounted over cifs from windows to hp-ux 11.11. In a particular subdirectory there are more than 400.000 files and they are seen from the windows box. But, in the unix we only see 62 files. We have found out a file is causing the
problem. If this file is removed, we can list all the files. BUT if we create a file with the same name, the ll command only
list 62 files again. We can create files with other names and it works. The name of the file is similar to others in the same subdirectory. And to get the thing worse, sometimes the ll works when the file exists and sometimes it only shows 62 files.....

HPUX:/path/path/path#touch filename.001

HPUX:/path/path/path#ll filename.001
-rwxrwxrwx 1 root sys 0 Feb 24 08:45 filename.001

HPUX:/path/path/path#ll |wc -l
62

HPUX:/path/path/path#rm filename.001

HPUX:/path/path/path#ll |wc -l
449260

HPUX:/path/path/path#

Any idea what is going on ?

Regards,
"When you look into an abyss, the abyss also looks into you"
4 REPLIES 4
Jose Mosquera
Honored Contributor

Re: Very strange behaviour listing a directory

Hi,

What happen when executes "ll -a"?

Rgds
Turgay Cavdar
Honored Contributor

Re: Very strange behaviour listing a directory

Is this problem specific to this server? Others have the same problem? What is your cifs client version?
R.O.
Esteemed Contributor

Re: Very strange behaviour listing a directory

Hi,

There is nothing different with "ls -a", except the "." and ".." entries. The cifs version is:

/opt/cifsclient/sbin/cifsclientd:
$Revision: 92453-07 linker linker crt0.o B.11.37 031205 $
HP CIFS Client - Version A.02.02.01

It only happens in a subdirectory and with a file name.

Regards,
"When you look into an abyss, the abyss also looks into you"
Dennis Handly
Acclaimed Contributor