Free Downloads, Community Forum,
FAQs and Developer Resources


Make /Tools Your Home | Link to us

Today's posts | Posts since last visit | Most Active Topics

All Forums Register Login Search Subscriptions My Profile Inbox
Tool Warehouse FAQs Resources Help Member List Address Book Logout

operation of "ls" inconsistant

 
Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [SFU / Interix / SUA Technology] >> SFU / Interix - Getting Started >> operation of "ls" inconsistant Page: [1] 2   next >   >>
Login
Message << Older Topic   Newer Topic >>
operation of "ls" inconsistant - May 20, '04, 9:25:00 AM   
benker

 

Posts: 37
Joined: May 7, '04,
Status: offline
Why does running "ls" always produce a listing of the files in a directory, but running "ls -l" SOMETIMES produces a listing of nothing.

Ex.
-159-> ls
a2ps-4.13.old groff-1.19.1.tar.gz pkg-1.6-bin35.sh psutils-p17.tar
a2ps-4.13b.tar groff-1.19.1a.tar.gz psutils
-160-> ls -l
-161->

This problem doesn't happen all of the time, but definitely happens enough to be trouble.
Post #: 1
RE: operation of "ls" inconsistant - May 20, '04, 10:11:58 AM   
markfunk

 

Posts: 673
Joined: Mar. 31, '03,
Status: offline
I've never, ever seen this behaviour before.
What filesystem is this happening on ? (local/remote, NTFS/Samba,FAT)

Make sure 'ls' is the correct one by using "/bin/ls" (ie it is not an alias)

(in reply to benker)
Post #: 2
RE: operation of "ls" inconsistant - May 20, '04, 10:25:06 AM   
benker

 

Posts: 37
Joined: May 7, '04,
Status: offline
"ls" isn't aliased (and running "which ls" shows "/bin/ls").

I'm not sure if I've seen it on "/dev/fs/C" which is NTFS, but I know I've seen it a number of times on a remotely mounted drive.

< Message edited by benker -- May 20, '04, 10:25:34 AM >

(in reply to benker)
Post #: 3
RE: operation of "ls" inconsistant - May 20, '04, 10:35:10 AM   
markfunk

 

Posts: 673
Joined: Mar. 31, '03,
Status: offline
If you've only seen it on remote volumes, then you've got some sort of networking problems. Or a flaky remote filesystem.
This would be outside the scope of Interix.

Whst type of filesystem is the remotely mounted drive ?

(in reply to benker)
Post #: 4
RE: operation of "ls" inconsistant - May 20, '04, 10:51:09 AM   
benker

 

Posts: 37
Joined: May 7, '04,
Status: offline
I'll keep my eyes open to see if this "ls" problem shows up on my C: (NTFS).

My remote drive is NTFS (Windows 2003 Server).

(in reply to markfunk)
Post #: 5
RE: operation of "ls" inconsistant - May 20, '04, 11:18:19 AM   
Rodney

 

Posts: 3728
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
When ls -l fails it's usually because stat() has
failed. I have seen it where a stat() call has failed.
It's usually a permission thing on the (parent) directory.
However, ls complains about it -- it's not silent.
Being silent is new.

As an alternative you could install lc. It doesn't have
as many options as ls, but it has many different and useful
ones (like visually dividing the different file types into groups).
Anyway, lc is different code which does things differently so
it may help figure out what the problem is. Now lc doesn't
have ls's "-l" option so you can use lc's "-i" option to
get it to invoke stat() (for example).

Something may come of the difference between ls and lc
because ls uses the fts_*() API's and lc does not.

Look at the perms on the parent directory (do a cacls as well
as an ls -l).

(in reply to benker)
Post #: 6
RE: operation of "ls" inconsistant - May 27, '04, 11:12:29 AM   
benker

 

Posts: 37
Joined: May 7, '04,
Status: offline
There seems to be an abnormality in the operation of "ls" with the "-l" switch. I don't think it is related to permissions.

I just ran "ls" several times and here are the results:
======================================================================
-62-> ls -al
total 28
drwx------+ 6 benkech  Domain Users     0 May 27 10:57 .
drwx------+ 1 benkech  Domain Users     0 May 25 11:01 ..
drwx------+ 3 benkech  Domain Users     0 May 26 15:39 basecase
-rwx------+ 1 benkech  Domain Users   856 Jan 16  2002 channel-select.names.idev
-rwx------+ 1 benkech  Domain Users   429 May 27 10:41 copy-rdch
-rwx------+ 1 benkech  Domain Users   226 Feb  9  2002 create-dirs
-rwx------+ 1 benkech  Domain Users  1972 Jan 24  2002 goose-lake.rdch
-rwx------+ 1 benkech  Domain Users  7989 May 26 13:47 master.dynamics.idev
drwxr-xr-x  1 benkech  Domain Users     0 May 27 10:51 plot
drwx------  1 benkech  Domain Users     0 May 26 13:24 psse-programs-v28
-rwx------+ 1 benkech  Domain Users   412 May 27 09:33 run-dynamics-all0
-rwx------+ 1 benkech  Domain Users   436 Jan 24  2002 run-dynamics-all1
-rwx------+ 1 benkech  Domain Users   843 May 27 09:36 run-dynamics-case
drwxr-xr-x  1 benkech  Domain Users     0 May 27 10:55 run01
-63-> mv goose-lake.rdch  troutbrook.rdch
-64-> nedit troutbrook.rdch
-65-> ls -al
-66-> ls -al
-67-> ls -al
-68-> ls -al
-69-> ls -al
-70->
-70->
-70->
-70-> ls -al
-71-> ls
basecase                        master.dynamics.idev            run-dynamics-all1
channel-select.names.idev       plot                            run-dynamics-case
copy-rdch                       psse-programs-v28               run01
create-dirs                     run-dynamics-all0               troutbrook.rdch
-72-> ls -al
-73-> ls -al
-74-> ls -al
-75-> ls -al
total 26
drwx------+ 6 benkech  Domain Users     0 May 27 11:00 .
drwx------+ 1 benkech  Domain Users     0 May 25 11:01 ..
drwx------+ 3 benkech  Domain Users     0 May 26 15:39 basecase
-rwx------+ 1 benkech  Domain Users   856 Jan 16  2002 channel-select.names.idev
-rwx------+ 1 benkech  Domain Users   429 May 27 10:41 copy-rdch
-rwx------+ 1 benkech  Domain Users   226 Feb  9  2002 create-dirs
-rwx------+ 1 benkech  Domain Users  7989 May 26 13:47 master.dynamics.idev
drwxr-xr-x  1 benkech  Domain Users     0 May 27 10:51 plot
drwx------  1 benkech  Domain Users     0 May 26 13:24 psse-programs-v28
-rwx------+ 1 benkech  Domain Users   412 May 27 09:33 run-dynamics-all0
-rwx------+ 1 benkech  Domain Users   436 Jan 24  2002 run-dynamics-all1
-rwx------+ 1 benkech  Domain Users   843 May 27 09:36 run-dynamics-case
drwxr-xr-x  1 benkech  Domain Users     0 May 27 10:55 run01
-rwx------+ 1 benkech  Domain Users   983 May 27 11:01 troutbrook.rdch
-76->

======================================================================

What happened for commands #65-69,70,72-74?

Before I ran command #75, I opened a Windows file manager and simply navigated to the directory.

< Message edited by benker -- May 27, '04, 11:43:59 AM >

(in reply to Rodney)
Post #: 7
RE: operation of "ls" inconsistant - May 27, '04, 11:30:32 AM   
markfunk

 

Posts: 673
Joined: Mar. 31, '03,
Status: offline
Before diagnosing this, could you please use "/bin/ls" instead of "ls".
And could you also do "/bin/pwd; df -k ."

thanks,

(in reply to benker)
Post #: 8
RE: operation of "ls" inconsistant - May 27, '04, 11:42:47 AM   
benker

 

Posts: 37
Joined: May 7, '04,
Status: offline
"which ls" returns "/bin/ls"; but next time I have the problem (it is sporadic), I'll explicitly run "/bin/ls".


As for the other requested command:
-80-> /bin/pwd; df -k
/dev/fs/J/new-hampshire
Filesystem           1024-blocks      Used Available Capacity Type  Mounted on
//HarddiskVolume1       35554648  18103014  17451634    51%   ntfs  /dev/fs/C
//WinDfs/J:0           551319184 328862084 222457100    60%   ntfs  /dev/fs/J
//WinDfs/K:0           551319184 373328916 177990268    68%   ntfs  /dev/fs/K
//WinDfs/N:0             3443516   1247932   2195584    36%   ntfs  /dev/fs/N
CTBER1F-NAS1:/shareddataber05
                       350839484 208265740 142573744    59%   ntfs  /dev/fs/P
//NetWareRedirector/NU-EAST-4/DATAVOL
                        57592128   1922624  55669504     3%   ???   /dev/fs/R
//NetWareRedirector/NU-EAST-1/DATAVOL
                        78072128  17214336  60857792    22%   ???   /dev/fs/S
//NetWareRedirector/NU-EAST-4/SYS/PUBLIC
                         1024000    407488    616512    40%   ???   /dev/fs/Z

(in reply to markfunk)
Post #: 9
RE: operation of "ls" inconsistant - May 27, '04, 11:59:20 AM   
markfunk

 

Posts: 673
Joined: Mar. 31, '03,
Status: offline
If there's a bug in Interix, it will be in the subsystem.
The "WinDfs" handling probably has a bug - some unexpected condition/timing problem.

You'll have to take this problem to Microsoft support

(in reply to benker)
Post #: 10
RE: operation of "ls" inconsistant - May 27, '04, 12:01:17 PM   
Rodney

 

Posts: 3728
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
The last post I made still holds. There's likely a permission
problem. There are "+"s littering the permissions output by ls -l
indicating extra ACL entries. These could be affecting the whole thing.

So: what are the perms on the parent directory (by ls and cacls)
please?
Also: install lc from /Tools and try running it. It's options are different
than ls and it's completely different code. This way the results can
be contrasted/compared. ("ls -al" =~ "lc -aPUG")

(in reply to benker)
Post #: 11
RE: operation of "ls" inconsistant - May 27, '04, 12:12:51 PM   
benker

 

Posts: 37
Joined: May 7, '04,
Status: offline
Rodney, if it was something with the permissions, wouldn't you expect that it would occur 100% of the time. In the example I posted, I never changed directories. I think markfunk may have something with his thought that a timing problem may be the problem. That could explain why the problem does not happen consistently.

Here is an example where "ls" worked every other time. Nothing changed in between. I just kept running "ls -al" without doing a single other task. Note commands 93/94, 95/96, 97/98. Then it started working 100% after running "/bin/ls" (see #102/103):


-90-> ls -al
total 26
drwx------+ 6 benkech  Domain Users     0 May 27 11:00 .
drwx------+ 1 benkech  Domain Users     0 May 25 11:01 ..
drwx------+ 3 benkech  Domain Users     0 May 26 15:39 basecase
-rwx------+ 1 benkech  Domain Users   856 Jan 16  2002 channel-select.names.idev
-rwx------+ 1 benkech  Domain Users   429 May 27 10:41 copy-rdch
-rwx------+ 1 benkech  Domain Users   226 Feb  9  2002 create-dirs
-rwx------+ 1 benkech  Domain Users  7989 May 26 13:47 master.dynamics.idev
drwxr-xr-x  1 benkech  Domain Users     0 May 27 10:51 plot
drwx------  1 benkech  Domain Users     0 May 26 13:24 psse-programs-v28
-rwx------+ 1 benkech  Domain Users   412 May 27 09:33 run-dynamics-all0
-rwx------+ 1 benkech  Domain Users   436 Jan 24  2002 run-dynamics-all1
-rwx------+ 1 benkech  Domain Users   843 May 27 09:36 run-dynamics-case
drwxr-xr-x  1 benkech  Domain Users     0 May 27 10:55 run01
-rwx------+ 1 benkech  Domain Users   983 May 27 11:48 troutbrook1.rdch
-91-> mv troutbrook1.rdch troutbrook.rdch
-92-> nedit troutbrook.rdch
-93-> ls -al
-94-> ls -al
total 26
drwx------+ 6 benkech  Domain Users     0 May 27 11:49 .
drwx------+ 1 benkech  Domain Users     0 May 25 11:01 ..
drwx------+ 3 benkech  Domain Users     0 May 26 15:39 basecase
-rwx------+ 1 benkech  Domain Users   856 Jan 16  2002 channel-select.names.idev
-rwx------+ 1 benkech  Domain Users   429 May 27 10:41 copy-rdch
-rwx------+ 1 benkech  Domain Users   226 Feb  9  2002 create-dirs
-rwx------+ 1 benkech  Domain Users  7989 May 26 13:47 master.dynamics.idev
drwxr-xr-x  1 benkech  Domain Users     0 May 27 10:51 plot
drwx------  1 benkech  Domain Users     0 May 26 13:24 psse-programs-v28
-rwx------+ 1 benkech  Domain Users   412 May 27 09:33 run-dynamics-all0
-rwx------+ 1 benkech  Domain Users   436 Jan 24  2002 run-dynamics-all1
-rwx------+ 1 benkech  Domain Users   843 May 27 09:36 run-dynamics-case
drwxr-xr-x  1 benkech  Domain Users     0 May 27 10:55 run01
-rwx------+ 1 benkech  Domain Users   983 May 27 11:49 troutbrook.rdch
-95-> ls -al
-96-> ls -al
total 26
drwx------+ 6 benkech  Domain Users     0 May 27 11:49 .
drwx------+ 1 benkech  Domain Users     0 May 25 11:01 ..
drwx------+ 3 benkech  Domain Users     0 May 26 15:39 basecase
-rwx------+ 1 benkech  Domain Users   856 Jan 16  2002 channel-select.names.idev
-rwx------+ 1 benkech  Domain Users   429 May 27 10:41 copy-rdch
-rwx------+ 1 benkech  Domain Users   226 Feb  9  2002 create-dirs
-rwx------+ 1 benkech  Domain Users  7989 May 26 13:47 master.dynamics.idev
drwxr-xr-x  1 benkech  Domain Users     0 May 27 10:51 plot
drwx------  1 benkech  Domain Users     0 May 26 13:24 psse-programs-v28
-rwx------+ 1 benkech  Domain Users   412 May 27 09:33 run-dynamics-all0
-rwx------+ 1 benkech  Domain Users   436 Jan 24  2002 run-dynamics-all1
-rwx------+ 1 benkech  Domain Users   843 May 27 09:36 run-dynamics-case
drwxr-xr-x  1 benkech  Domain Users     0 May 27 10:55 run01
-rwx------+ 1 benkech  Domain Users   983 May 27 11:49 troutbrook.rdch
-97-> ls -al
-98-> ls -al
total 26
drwx------+ 6 benkech  Domain Users     0 May 27 11:49 .
drwx------+ 1 benkech  Domain Users     0 May 25 11:01 ..
drwx------+ 3 benkech  Domain Users     0 May 26 15:39 basecase
-rwx------+ 1 benkech  Domain Users   856 Jan 16  2002 channel-select.names.idev
-rwx------+ 1 benkech  Domain Users   429 May 27 10:41 copy-rdch
-rwx------+ 1 benkech  Domain Users   226 Feb  9  2002 create-dirs
-rwx------+ 1 benkech  Domain Users  7989 May 26 13:47 master.dynamics.idev
drwxr-xr-x  1 benkech  Domain Users     0 May 27 10:51 plot
drwx------  1 benkech  Domain Users     0 May 26 13:24 psse-programs-v28
-rwx------+ 1 benkech  Domain Users   412 May 27 09:33 run-dynamics-all0
-rwx------+ 1 benkech  Domain Users   436 Jan 24  2002 run-dynamics-all1
-rwx------+ 1 benkech  Domain Users   843 May 27 09:36 run-dynamics-case
drwxr-xr-x  1 benkech  Domain Users     0 May 27 10:55 run01
-rwx------+ 1 benkech  Domain Users   983 May 27 11:49 troutbrook.rdch
-99-> /bin/ls -al
total 26
drwx------+ 6 benkech  Domain Users     0 May 27 11:49 .
drwx------+ 1 benkech  Domain Users     0 May 25 11:01 ..
drwx------+ 3 benkech  Domain Users     0 May 26 15:39 basecase
-rwx------+ 1 benkech  Domain Users   856 Jan 16  2002 channel-select.names.idev
-rwx------+ 1 benkech  Domain Users   429 May 27 10:41 copy-rdch
-rwx------+ 1 benkech  Domain Users   226 Feb  9  2002 create-dirs
-rwx------+ 1 benkech  Domain Users  7989 May 26 13:47 master.dynamics.idev
drwxr-xr-x  1 benkech  Domain Users     0 May 27 10:51 plot
drwx------  1 benkech  Domain Users     0 May 26 13:24 psse-programs-v28
-rwx------+ 1 benkech  Domain Users   412 May 27 09:33 run-dynamics-all0
-rwx------+ 1 benkech  Domain Users   436 Jan 24  2002 run-dynamics-all1
-rwx------+ 1 benkech  Domain Users   843 May 27 09:36 run-dynamics-case
drwxr-xr-x  1 benkech  Domain Users     0 May 27 10:55 run01
-rwx------+ 1 benkech  Domain Users   983 May 27 11:49 troutbrook.rdch
-100-> /bin/ls -al
total 26
drwx------+ 6 benkech  Domain Users     0 May 27 11:49 .
drwx------+ 1 benkech  Domain Users     0 May 25 11:01 ..
drwx------+ 3 benkech  Domain Users     0 May 26 15:39 basecase
-rwx------+ 1 benkech  Domain Users   856 Jan 16  2002 channel-select.names.idev
-rwx------+ 1 benkech  Domain Users   429 May 27 10:41 copy-rdch
-rwx------+ 1 benkech  Domain Users   226 Feb  9  2002 create-dirs
-rwx------+ 1 benkech  Domain Users  7989 May 26 13:47 master.dynamics.idev
drwxr-xr-x  1 benkech  Domain Users     0 May 27 10:51 plot
drwx------  1 benkech  Domain Users     0 May 26 13:24 psse-programs-v28
-rwx------+ 1 benkech  Domain Users   412 May 27 09:33 run-dynamics-all0
-rwx------+ 1 benkech  Domain Users   436 Jan 24  2002 run-dynamics-all1
-rwx------+ 1 benkech  Domain Users   843 May 27 09:36 run-dynamics-case
drwxr-xr-x  1 benkech  Domain Users     0 May 27 10:55 run01
-rwx------+ 1 benkech  Domain Users   983 May 27 11:49 troutbrook.rdch
-101-> /bin/ls -al
total 26
drwx------+ 6 benkech  Domain Users     0 May 27 11:49 .
drwx------+ 1 benkech  Domain Users     0 May 25 11:01 ..
drwx------+ 3 benkech  Domain Users     0 May 26 15:39 basecase
-rwx------+ 1 benkech  Domain Users   856 Jan 16  2002 channel-select.names.idev
-rwx------+ 1 benkech  Domain Users   429 May 27 10:41 copy-rdch
-rwx------+ 1 benkech  Domain Users   226 Feb  9  2002 create-dirs
-rwx------+ 1 benkech  Domain Users  7989 May 26 13:47 master.dynamics.idev
drwxr-xr-x  1 benkech  Domain Users     0 May 27 10:51 plot
drwx------  1 benkech  Domain Users     0 May 26 13:24 psse-programs-v28
-rwx------+ 1 benkech  Domain Users   412 May 27 09:33 run-dynamics-all0
-rwx------+ 1 benkech  Domain Users   436 Jan 24  2002 run-dynamics-all1
-rwx------+ 1 benkech  Domain Users   843 May 27 09:36 run-dynamics-case
drwxr-xr-x  1 benkech  Domain Users     0 May 27 10:55 run01
-rwx------+ 1 benkech  Domain Users   983 May 27 11:49 troutbrook.rdch
-102-> ls -al
total 26
drwx------+ 6 benkech  Domain Users     0 May 27 11:49 .
drwx------+ 1 benkech  Domain Users     0 May 25 11:01 ..
drwx------+ 3 benkech  Domain Users     0 May 26 15:39 basecase
-rwx------+ 1 benkech  Domain Users   856 Jan 16  2002 channel-select.names.idev
-rwx------+ 1 benkech  Domain Users   429 May 27 10:41 copy-rdch
-rwx------+ 1 benkech  Domain Users   226 Feb  9  2002 create-dirs
-rwx------+ 1 benkech  Domain Users  7989 May 26 13:47 master.dynamics.idev
drwxr-xr-x  1 benkech  Domain Users     0 May 27 10:51 plot
drwx------  1 benkech  Domain Users     0 May 26 13:24 psse-programs-v28
-rwx------+ 1 benkech  Domain Users   412 May 27 09:33 run-dynamics-all0
-rwx------+ 1 benkech  Domain Users   436 Jan 24  2002 run-dynamics-all1
-rwx------+ 1 benkech  Domain Users   843 May 27 09:36 run-dynamics-case
drwxr-xr-x  1 benkech  Domain Users     0 May 27 10:55 run01
-rwx------+ 1 benkech  Domain Users   983 May 27 11:49 troutbrook.rdch
-103-> ls -al
total 26
drwx------+ 6 benkech  Domain Users     0 May 27 11:49 .
drwx------+ 1 benkech  Domain Users     0 May 25 11:01 ..
drwx------+ 3 benkech  Domain Users     0 May 26 15:39 basecase
-rwx------+ 1 benkech  Domain Users   856 Jan 16  2002 channel-select.names.idev
-rwx------+ 1 benkech  Domain Users   429 May 27 10:41 copy-rdch
-rwx------+ 1 benkech  Domain Users   226 Feb  9  2002 create-dirs
-rwx------+ 1 benkech  Domain Users  7989 May 26 13:47 master.dynamics.idev
drwxr-xr-x  1 benkech  Domain Users     0 May 27 10:51 plot
drwx------  1 benkech  Domain Users     0 May 26 13:24 psse-programs-v28
-rwx------+ 1 benkech  Domain Users   412 May 27 09:33 run-dynamics-all0
-rwx------+ 1 benkech  Domain Users   436 Jan 24  2002 run-dynamics-all1
-rwx------+ 1 benkech  Domain Users   843 May 27 09:36 run-dynamics-case
drwxr-xr-x  1 benkech  Domain Users     0 May 27 10:55 run01
-rwx------+ 1 benkech  Domain Users   983 May 27 11:49 troutbrook.rdch
-104-> 

(in reply to benker)
Post #: 12
RE: operation of "ls" inconsistant - May 27, '04, 12:26:57 PM   
benker

 

Posts: 37
Joined: May 7, '04,
Status: offline
I think here is proof that there is a timing problem. The only thing that happened between #114 and #115 is that I was away from my computer for a while. Note that "ls" works (as it always does), but using the "-al" switches causes it to malfunction. Note #128/129 also:


-114-> ls -al
total 26
drwx------+ 6 benkech  Domain Users     0 May 27 11:52 .
drwx------+ 1 benkech  Domain Users     0 May 25 11:01 ..
drwx------+ 3 benkech  Domain Users     0 May 26 15:39 basecase
-rwx------+ 1 benkech  Domain Users   856 Jan 16  2002 channel-select.names.idev
-rwx------+ 1 benkech  Domain Users   429 May 27 10:41 copy-rdch
-rwx------+ 1 benkech  Domain Users   226 Feb  9  2002 create-dirs
-rwx------+ 1 benkech  Domain Users  7989 May 26 13:47 master.dynamics.idev
drwxr-xr-x  1 benkech  Domain Users     0 May 27 10:51 plot
drwx------  1 benkech  Domain Users     0 May 26 13:24 psse-programs-v28
-rwx------+ 1 benkech  Domain Users   412 May 27 09:33 run-dynamics-all0
-rwx------+ 1 benkech  Domain Users   436 Jan 24  2002 run-dynamics-all1
-rwx------+ 1 benkech  Domain Users   843 May 27 09:36 run-dynamics-case
drwxr-xr-x  1 benkech  Domain Users     0 May 27 10:55 run01
-rwx------+ 1 benkech  Domain Users   983 May 27 11:52 troutbrook.rdch
-115-> ls -al
-116-> ls -al
-117-> ls -al
-118-> ls -al
-119-> /bin/ls -al
-120-> /bin/ls -al
-121-> /bin/ls -al
-122-> ls -al
-123-> ls -al
-124-> ls
basecase                        master.dynamics.idev            run-dynamics-all1
channel-select.names.idev       plot                            run-dynamics-case
copy-rdch                       psse-programs-v28               run01
create-dirs                     run-dynamics-all0               troutbrook.rdch
-125-> ls -al
-126-> /bin/ls -al
-127-> /bin/ls
basecase                        master.dynamics.idev            run-dynamics-all1
channel-select.names.idev       plot                            run-dynamics-case
copy-rdch                       psse-programs-v28               run01
create-dirs                     run-dynamics-all0               troutbrook.rdch
-128-> ls -al
-129-> ls -l
total 26
drwx------+ 3 benkech  Domain Users     0 May 26 15:39 basecase
-rwx------+ 1 benkech  Domain Users   856 Jan 16  2002 channel-select.names.idev
-rwx------+ 1 benkech  Domain Users   429 May 27 10:41 copy-rdch
-rwx------+ 1 benkech  Domain Users   226 Feb  9  2002 create-dirs
-rwx------+ 1 benkech  Domain Users  7989 May 26 13:47 master.dynamics.idev
drwxr-xr-x  1 benkech  Domain Users     0 May 27 10:51 plot
drwx------  1 benkech  Domain Users     0 May 26 13:24 psse-programs-v28
-rwx------+ 1 benkech  Domain Users   412 May 27 09:33 run-dynamics-all0
-rwx------+ 1 benkech  Domain Users   436 Jan 24  2002 run-dynamics-all1
-rwx------+ 1 benkech  Domain Users   843 May 27 09:36 run-dynamics-case
drwxr-xr-x  1 benkech  Domain Users     0 May 27 10:55 run01
-rwx------+ 1 benkech  Domain Users   983 May 27 11:52 troutbrook.rdch
-130-> ls -al
total 26
drwx------+ 6 benkech  Domain Users     0 May 27 11:52 .
drwx------+ 1 benkech  Domain Users     0 May 25 11:01 ..
drwx------+ 3 benkech  Domain Users     0 May 26 15:39 basecase
-rwx------+ 1 benkech  Domain Users   856 Jan 16  2002 channel-select.names.idev
-rwx------+ 1 benkech  Domain Users   429 May 27 10:41 copy-rdch
-rwx------+ 1 benkech  Domain Users   226 Feb  9  2002 create-dirs
-rwx------+ 1 benkech  Domain Users  7989 May 26 13:47 master.dynamics.idev
drwxr-xr-x  1 benkech  Domain Users     0 May 27 10:51 plot
drwx------  1 benkech  Domain Users     0 May 26 13:24 psse-programs-v28
-rwx------+ 1 benkech  Domain Users   412 May 27 09:33 run-dynamics-all0
-rwx------+ 1 benkech  Domain Users   436 Jan 24  2002 run-dynamics-all1
-rwx------+ 1 benkech  Domain Users   843 May 27 09:36 run-dynamics-case
drwxr-xr-x  1 benkech  Domain Users     0 May 27 10:55 run01
-rwx------+ 1 benkech  Domain Users   983 May 27 11:52 troutbrook.rdch

(in reply to Rodney)
Post #: 13
RE: operation of "ls" inconsistant - May 27, '04, 12:31:26 PM   
Rodney

 

Posts: 3728
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
I'm not saying Mark isn't correct.

But it needs more isolation to say whether it's ls using the fts*() API's
or a subsystem bug (lc doesn't use fts*() api's). Having the full ACL info
will help by showing there is/isn't a permission problem. Then the evidence is
clear and (hopefully) overwhelming when sent to MS support. Any problem showing
up that potentially involves timing is a pain; it can show up for you and not
for anyone else.

(in reply to benker)
Post #: 14
RE: operation of "ls" inconsistant - May 27, '04, 12:38:43 PM   
benker

 

Posts: 37
Joined: May 7, '04,
Status: offline
The perms on the parent directory (by ls and cacls) are:
-25-> ls -ald . ..
drwx------+ 1 benkech  Domain Users  0 May 27 11:52 .
drwx------+ 1 benkech  Domain Users  0 May 25 11:01 ..
-26-> cacls .
J:\new-hampshire\troutbrook\dynamics NU\benkech:(OI)(CI)(DENY)(special access:)
                                                      WRITE_DAC

                                   NU\benkech:(OI)(CI)C
                                   NU\DL-FS-ADMIN-FC:(OI)(CI)F
                                   NU\Domain Admins:(OI)(CI)F

-27-> cacls ..
J:\new-hampshire\troutbrook NU\benkech:(OI)(CI)(DENY)(special access:)
                                             WRITE_DAC

                          NU\benkech:(OI)(CI)C
                          NU\DL-FS-ADMIN-FC:(OI)(CI)F
                          NU\Domain Admins:(OI)(CI)F

-28->







Here is some more weirdness:

-4-> ls -alt
-5-> ls -alt
-6-> ls -alt
-7-> ls -lt
-8-> ls -lt
-9-> ls
basecase                        master.dynamics.idev            run-dynamics-all1
channel-select.names.idev       plot                            run-dynamics-case
copy-rdch                       psse-programs-v28               run01
create-dirs                     run-dynamics-all0               troutbrook.rdch
-10-> ls -alt
-11-> ls -lt
-12-> ls -at
-13-> ls -t
-14-> ls
basecase                        master.dynamics.idev            run-dynamics-all1
channel-select.names.idev       plot                            run-dynamics-case
copy-rdch                       psse-programs-v28               run01
create-dirs                     run-dynamics-all0               troutbrook.rdch
-15-> /bin/ls
basecase                        master.dynamics.idev            run-dynamics-all1
channel-select.names.idev       plot                            run-dynamics-case
copy-rdch                       psse-programs-v28               run01
create-dirs                     run-dynamics-all0               troutbrook.rdch
-16-> /bin/ls -alt
-17-> /bin/ls -lt
-18-> /bin/ls -t
-19-> /bin/ls -al
-20-> /bin/ls -a
.                               create-dirs                     run-dynamics-all1
..                              master.dynamics.idev            run-dynamics-case
basecase                        plot                            run01
channel-select.names.idev       psse-programs-v28               troutbrook.rdch
copy-rdch                       run-dynamics-all0
-21-> /bin/ls -l
-22-> /bin/ls -t
-23-> /bin/ls -a
.                               create-dirs                     run-dynamics-all1
..                              master.dynamics.idev            run-dynamics-case
basecase                        plot                            run01
channel-select.names.idev       psse-programs-v28               troutbrook.rdch
copy-rdch                       run-dynamics-all0
-24->


< Message edited by benker -- May 27, '04, 12:44:43 PM >

(in reply to Rodney)
Post #: 15
RE: operation of "ls" inconsistant - May 27, '04, 2:03:41 PM   
markfunk

 

Posts: 673
Joined: Mar. 31, '03,
Status: offline
Which shell are you using ? ksh, csh, bash ??

FYI:

1) When debugging a problem, "which ls" is inconclusive. This 'which' command is probably a win32 command.
What you need is a command that is built into the shell for the result to be meaningful.
If you were using /bin/ksh and you did "whence ls", then there's a much higher confidence factor.
To be conclusive, only use "/bin/ls".

2) Using the output from "/bin/ls" is not a good way to debug the problem.
It invokes a lot of different library and system calls.
What Rodney is tryint to do is narrow down the scope of the problem and hopefully determine which system call or library routine is the culprit.
Normally, one either writes small programs that just does one or two things at a time to narrow doen the problem.
(ie. write a program that just does opendir/readdir/stat()s. or write a program that does fts*() calls. or ...)

3)Another way to try to figure out what's going on is to run truss.
Here's a script you can use.
Cut/paste this text into a file called "/tmp/testls.sh"
and then execute it as "ksh /tmp/testls.sh"

When it exits, you should look at the last /tmp/truss.out# file to see what system calls were performed and perhaps determine what went wrong.


#------------------------
export PATH=/bin

cnt=1

/bin/pwd
/bin/df -k .

while true; do
truss -o /tmp/truss.out$cnt /bin/ls -al > /tmp/junkjunk
echo "status = $?"

if [ ! -s /tmp/junkjunk ]; then
# /bin/ls generated no output, so exit and look at truss.out file
exit
fi
let "cnt = cnt + 1"
done

(in reply to benker)
Post #: 16
RE: operation of "ls" inconsistant - May 27, '04, 3:18:20 PM   
benker

 

Posts: 37
Joined: May 7, '04,
Status: offline
Got it. The ONLY difference between "ls -al" working/not-working shown below is that I navigated to the directory in my Windows file manager before it would work.

Procedure:
1) discovered "ls -al" not working
2) ran script provided by markfunk
3) checked that "ls -al" still not working
4) navigated to the directory in Windows file manager
5) ran script provided by markfunk
6) confirmed that "ls -al" was working


/dev/fs/J/new-hampshire/troutbrook/dynamics
Filesystem           1024-blocks      Used Available Capacity Type  Mounted on
//WinDfs/J:0           551319184 329013948 222305236    60%   ntfs  /dev/fs/J





Here is the output when "ls -al" works correctly:
tracing pid 1097
getdata() getdata returned 0
getrlimit() getrlimit returned 0
pthread_inform_signals() pthread_inform_signals returned 0
open("/usr/share/locale//_ASCII", 0x1) open returned 4
read(4, 0x824330, 131072) read returned 131072 0x20000
close(4) close returned 0
open("/usr/share/locale//ASCII_", 0x1) open returned 4
read(4, 0x844338, 512) read returned 512 0x200
read(4, 0x844540, 131072) read returned 0
close(4) close returned 0
isatty(1) isatty returned 0
getids() getids returned 0
lstat(".", 0x01C10B28) lstat ret: 0 dev: 0x4102000000004a ino: 0xe495f2e8
open(".", 0x1) open returned 4
fchdir(4) fchdir returned 0
open(".", 0x1) open returned 5
open(".", 0x1) open returned 6
fstat(6, 0x1C10710, 0x1BF0710) fstat ret: 0 dev: 0x4102000000004a ino: 0xe495f2e8
fcntl(6, 0x3, 0x1) fcntl returned 0
fstat(6, 0x1C10710, 0x1BF0710) fstat ret: 0 dev: 0x4102000000004a ino: 0xe495f2e8
fchdir(6) fchdir returned 0
readdir(6, 0x844C8C, 5120, 1) readdir returned 582 0x246
lstat(".", 0x01C10B28) lstat ret: 0 dev: 0x4102000000004a ino: 0xe495f2e8
lstat("..", 0x01C10B28) lstat ret: 0 dev: 0x4102000000004a ino: 0xe3f42228
lstat("basecase", 0x01C10B38) lstat ret: 0 dev: 0x4102000000004a ino: 0xe3e936a8
lstat("master.dynamics.idev", 0x01C10B50) lstat ret: 0 dev: 0x4102000000004a ino: 0xe3482488
lstat("run01", 0x01C10B30) lstat ret: 0 dev: 0x4102000000004a ino: 0xe42a7328
lstat("copy-rdch", 0x01C10B38) lstat ret: 0 dev: 0x4102000000004a ino: 0xe405d4a8
lstat("create-dirs", 0x01C10B38) lstat ret: 0 dev: 0x4102000000004a ino: 0xe4884b48
lstat("plot", 0x01C10B30) lstat ret: 0 dev: 0x4102000000004a ino: 0xe496a848
lstat("run-dynamics-all0", 0x01C10B48) lstat ret: 0 dev: 0x4102000000004a ino: 0xe3e69b48
lstat("run-dynamics-all1", 0x01C10B48) lstat ret: 0 dev: 0x4102000000004a ino: 0xe2d9a008
lstat("run-dynamics-case", 0x01C10B48) lstat ret: 0 dev: 0x4102000000004a ino: 0xe530d568
lstat("channel-select.names.idev", 0x01C10B58) lstat ret: 0 dev: 0x4102000000004a ino: 0xe48cf648
lstat("psse-programs-v28", 0x01C10B48) lstat ret: 0 dev: 0x4102000000004a ino: 0xe5308728
lstat("troutbrook.rdch", 0x01C10B40) lstat ret: 0 dev: 0x4102000000004a ino: 0xe2da4568
lstat("troutbrook.rawd", 0x01C10B40) lstat ret: 0 dev: 0x4102000000004a ino: 0xe3f4b5a8
readdir(6, 0x844C8C, 5120, 0) readdir returned 0
close(6) close returned 0
pthread_mutex_destroy(0x844C78) pthread_mutex_destroy returned 0
fchdir(4) fchdir returned 0
fchdir(5) fchdir returned 0
close(5) close returned 0
getpwuid(0x10000006BCC, 0x0) getpwuid returned 0
getgrgid(0x10000000201, 0x1) getgrgid returned 0
fstat(1, 0x1C10710, 0x1BF0710) fstat ret: 0 dev: 0x40000000000043 ino: 0x00005e12
isatty(1) isatty returned 0
gettzenv() gettzenv returned 0
open_nocancel("/usr/share/zoneinfo/America/New_York", 0x1) open_nocancel returned 5
read_nocancel(5, 0x81DB7C, 7484) read_nocancel returned 1267 0x4F3
close_nocancel(5) close_nocancel returned 0
write(1, 0x84AA48, 1024) write returned 1024 0x400
lseek(0, 1, 0) lseek returned 0
lseek(0, 0, 0) lseek returned 0
write(1, 0x84AA48, 6) write returned 6
exit(0) process exited with status 0





Here is the output when "ls -al" doesn't work:
tracing pid 777
getdata() getdata returned 0
getrlimit() getrlimit returned 0
pthread_inform_signals() pthread_inform_signals returned 0
open("/usr/share/locale//_ASCII", 0x1) open returned 4
read(4, 0x824330, 131072) read returned 131072 0x20000
close(4) close returned 0
open("/usr/share/locale//ASCII_", 0x1) open returned 4
read(4, 0x844338, 512) read returned 512 0x200
read(4, 0x844540, 131072) read returned 0
close(4) close returned 0
isatty(1) isatty returned 0
getids() getids returned 0
lstat(".", 0x01B70B28) lstat ret: 0 dev: 0x4102000000004a ino: 0xe42a7328
open(".", 0x1) open returned 4
fchdir(4) fchdir returned 0
open(".", 0x1) open returned 5
open(".", 0x1) open returned 6
fstat(6, 0x1B70710, 0x1B50710) fstat ret: 0 dev: 0x4102000000004a ino: 0xe482f3e8
fcntl(6, 0x3, 0x1) fcntl returned 0
fstat(6, 0x1B70710, 0x1B50710) fstat ret: 0 dev: 0x4102000000004a ino: 0xe482f3e8
close(6) close returned 0
pthread_mutex_destroy(0x844C78) pthread_mutex_destroy returned 0
fchdir(5) fchdir returned 0
close(5) close returned 0
open(".", 0x1) open returned 5
fstat(5, 0x1B70710, 0x1B50710) fstat ret: 0 dev: 0x4102000000004a ino: 0xe482f3e8
fcntl(5, 0x3, 0x1) fcntl returned 0
fstat(5, 0x1B70710, 0x1B50710) fstat ret: 0 dev: 0x4102000000004a ino: 0xe482f3e8
close(5) close returned 0
pthread_mutex_destroy(0x844C78) pthread_mutex_destroy returned 0
exit(0) process exited with status 0



Permission information
-64-> cacls .
J:\new-hampshire\troutbrook\dynamics NU\benkech:(OI)(CI)(DENY)(special access:)
WRITE_DAC

NU\benkech:(OI)(CI)C
NU\DL-FS-ADMIN-FC:(OI)(CI)F
NU\Domain Admins:(OI)(CI)F

-65-> cacls ..
J:\new-hampshire\troutbrook NU\benkech:(OI)(CI)(DENY)(special access:)
WRITE_DAC

NU\benkech:(OI)(CI)C
NU\DL-FS-ADMIN-FC:(OI)(CI)F
NU\Domain Admins:(OI)(CI)F

-66-> ls -ald . ..
drwx------+ 6 benkech Domain Users 0 May 27 14:40 .
drwx------+ 1 benkech Domain Users 0 May 25 11:01 ..

(in reply to markfunk)
Post #: 17
RE: operation of "ls" inconsistant - May 27, '04, 4:13:06 PM   
Rodney

 

Posts: 3728
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
Well, obviously the output is the same up to that one fstat() which indicates
it returned a "0". Now I don't know if that "0" can be trusted or not because
the code takes different actions after that point (one does the fchdir).
So the question is "why?". I can only think that it has to do with the previous
fstat().

Here's something to try. I've written a utility call stat that will o/p
the "struct stat" for a list of file/dir names. There's lstat too.
They're just standalone in ftp://ftp.interopsystems.com/pub.

Try running this stat on "." and then the filenames therein.

If the stat fails then we know it's stat()/lstat() and not the lsprogram.

(in reply to benker)
Post #: 18
RE: operation of "ls" inconsistant - May 27, '04, 4:36:53 PM   
markfunk

 

Posts: 673
Joined: Mar. 31, '03,
Status: offline
If you look closely, it would appear to be a Microsoft non-unique inode # problem.
Look at the case that does not work. There is a successful lstat(".") with an inode # 0xe42a7328
Following this is an open(".") and then a fstat() on this file descriptor. Notice that the inode # is different - 0xe482f3e8.

Oops.

This probably isn't Interix's fault at all. This is a feature of
Microsoft network filesystems. An optimization where they randomly pick
unique file serial numbers (inodes) so that they don't have to make a network request to get the actual file serial number.

I guess WinDFS isn't being treated as a network filesystem by Interix internally. There are already work arounds in the library (libc) code
when the inode is not reliable (see S_INO_RELIABLE bit in stat(2) man page)

(in reply to Rodney)
Post #: 19
RE: operation of "ls" inconsistant - May 27, '04, 4:48:40 PM   
benker

 

Posts: 37
Joined: May 7, '04,
Status: offline
Here's some interesting results. "ls -al" isn't working, but "stat" runs:
-85-> ls -al
-86-> /bin/ls -al
-87-> /dev/fs/J/bin/unix/stat . .. basecase channel-select.names.idev copy-rdch create-dirs master.dynamics.idev plot psse-pr
ograms-v28 run-dynamics-all0 run-dynamics-all1 run-dynamics-case run01 troutbrook.rawd troutbrook.rdch
.
           mode: 20000040700 (drwx------+, directory, additional ACL info)
          inode: -480766552
            dev: 1090519114
           rdev: 0
          nlink: 1
            uid: 1076172 (benkech)
            gid: 1049089 (Domain Users)
           size: 0 (0k, 0M)
          atime: 1085689463 (Thu May 27 16:24:23 EDT 2004)
          mtime: 1085683247 (Thu May 27 14:40:47 EDT 2004)
          ctime: 1085683247 (Thu May 27 14:40:47 EDT 2004)
        blksize: 4096
         blocks: 0
          attrs: 16
           info: 1 (inode is reliable)
..
           mode: 20000040700 (drwx------+, directory, additional ACL info)
          inode: -460540440
            dev: 1090519114
           rdev: 0
          nlink: 1
            uid: 1076172 (benkech)
            gid: 1049089 (Domain Users)
           size: 0 (0k, 0M)
          atime: 1085687135 (Thu May 27 15:45:35 EDT 2004)
          mtime: 1085497279 (Tue May 25 11:01:19 EDT 2004)
          ctime: 1085497279 (Tue May 25 11:01:19 EDT 2004)
        blksize: 4096
         blocks: 0
          attrs: 16
           info: 1 (inode is reliable)
basecase
           mode: 20000040700 (drwx------+, directory, additional ACL info)
          inode: -471255384
            dev: 1090519114
           rdev: 0
          nlink: 3
            uid: 1076172 (benkech)
            gid: 1049089 (Domain Users)
           size: 0 (0k, 0M)
          atime: 1085687135 (Thu May 27 15:45:35 EDT 2004)
          mtime: 1085683247 (Thu May 27 14:40:47 EDT 2004)
          ctime: 1085683247 (Thu May 27 14:40:47 EDT 2004)
        blksize: 4096
         blocks: 0
          attrs: 16
           info: 1 (inode is reliable)
channel-select.names.idev
           mode: 20000100700 (-rwx------+, regular file, additional ACL info)
          inode: -468402168
            dev: 1090519114
           rdev: 0
          nlink: 1
            uid: 1076172 (benkech)
            gid: 1049089 (Domain Users)
           size: 856 (0k, 0M)
          atime: 1085665067 (Thu May 27 09:37:47 EDT 2004)
          mtime: 1011175960 (Wed Jan 16 05:12:40 EST 2002)
          ctime: 1085665067 (Thu May 27 09:37:47 EDT 2004)
        blksize: 4096
         blocks: 2
          attrs: 32
           info: 1 (inode is reliable)
copy-rdch
           mode: 20000100700 (-rwx------+, regular file, additional ACL info)
          inode: -488130616
            dev: 1090519114
           rdev: 0
          nlink: 1
            uid: 1076172 (benkech)
            gid: 1049089 (Domain Users)
           size: 429 (0k, 0M)
          atime: 1085680562 (Thu May 27 13:56:02 EDT 2004)
          mtime: 1085668916 (Thu May 27 10:41:56 EDT 2004)
          ctime: 1085668916 (Thu May 27 10:41:56 EDT 2004)
        blksize: 4096
         blocks: 1
          attrs: 32
           info: 1 (inode is reliable)
create-dirs
           mode: 20000100700 (-rwx------+, regular file, additional ACL info)
          inode: -484552696
            dev: 1090519114
           rdev: 0
          nlink: 1
            uid: 1076172 (benkech)
            gid: 1049089 (Domain Users)
           size: 226 (0k, 0M)
          atime: 1085669516 (Thu May 27 10:51:56 EDT 2004)
          mtime: 1013292194 (Sat Feb  9 17:03:14 EST 2002)
          ctime: 1085669516 (Thu May 27 10:51:56 EDT 2004)
        blksize: 4096
         blocks: 1
          attrs: 32
           info: 1 (inode is reliable)
master.dynamics.idev
           mode: 20000100700 (-rwx------+, regular file, additional ACL info)
          inode: -461406200
            dev: 1090519114
           rdev: 0
          nlink: 1
            uid: 1076172 (benkech)
            gid: 1049089 (Domain Users)
           size: 7989 (7k, 0M)
          atime: 1085680553 (Thu May 27 13:55:53 EDT 2004)
          mtime: 1085593672 (Wed May 26 13:47:52 EDT 2004)
          ctime: 1085670029 (Thu May 27 11:00:29 EDT 2004)
        blksize: 4096
         blocks: 16
          attrs: 32
           info: 1 (inode is reliable)
plot
           mode: 40755 (drwxr-xr-x , directory)
          inode: -488841208
            dev: 1090519114
           rdev: 0
          nlink: 1
            uid: 1076172 (benkech)
            gid: 1049089 (Domain Users)
           size: 0 (0k, 0M)
          atime: 1085687135 (Thu May 27 15:45:35 EDT 2004)
          mtime: 1085669490 (Thu May 27 10:51:30 EDT 2004)
          ctime: 1085669490 (Thu May 27 10:51:30 EDT 2004)
        blksize: 4096
         blocks: 0
          attrs: 16
           info: 1 (inode is reliable)
psse-programs-v28
           mode: 40700 (drwx------ , directory)
          inode: -473999096
            dev: 1090519114
           rdev: 0
          nlink: 1
            uid: 1076172 (benkech)
            gid: 1049089 (Domain Users)
           size: 0 (0k, 0M)
          atime: 1085687135 (Thu May 27 15:45:35 EDT 2004)
          mtime: 1085592261 (Wed May 26 13:24:21 EDT 2004)
          ctime: 1085592261 (Wed May 26 13:24:21 EDT 2004)
        blksize: 4096
         blocks: 0
          attrs: 48
           info: 1 (inode is reliable)
run-dynamics-all0
           mode: 20000100700 (-rwx------+, regular file, additional ACL info)
          inode: -488579064
            dev: 1090519114
           rdev: 0
          nlink: 1
            uid: 1076172 (benkech)
            gid: 1049089 (Domain Users)
           size: 412 (0k, 0M)
          atime: 1085675434 (Thu May 27 12:30:34 EDT 2004)
          mtime: 1085664801 (Thu May 27 09:33:21 EDT 2004)
          ctime: 1085669557 (Thu May 27 10:52:37 EDT 2004)
        blksize: 4096
         blocks: 1
          attrs: 32
           info: 1 (inode is reliable)
run-dynamics-all1
           mode: 20000100700 (-rwx------+, regular file, additional ACL info)
          inode: -481320952
            dev: 1090519114
           rdev: 0
          nlink: 1
            uid: 1076172 (benkech)
            gid: 1049089 (Domain Users)
           size: 436 (0k, 0M)
          atime: 1085665067 (Thu May 27 09:37:47 EDT 2004)
          mtime: 1011910194 (Thu Jan 24 17:09:54 EST 2002)
          ctime: 1085664814 (Thu May 27 09:33:34 EDT 2004)
        blksize: 4096
         blocks: 1
          attrs: 32
           info: 1 (inode is reliable)
run-dynamics-case
           mode: 20000100700 (-rwx------+, regular file, additional ACL info)
          inode: -450119832
            dev: 1090519114
           rdev: 0
          nlink: 1
            uid: 1076172 (benkech)
            gid: 1049089 (Domain Users)
           size: 844 (0k, 0M)
          atime: 1085680343 (Thu May 27 13:52:23 EDT 2004)
          mtime: 1085676204 (Thu May 27 12:43:24 EDT 2004)
          ctime: 1085676204 (Thu May 27 12:43:24 EDT 2004)
        blksize: 4096
         blocks: 2
          attrs: 32
           info: 1 (inode is reliable)
run01
           mode: 40755 (drwxr-xr-x , directory)
          inode: -487907320
            dev: 1090519114
           rdev: 0
          nlink: 1
            uid: 1076172 (benkech)
            gid: 1049089 (Domain Users)
           size: 0 (0k, 0M)
          atime: 1085687135 (Thu May 27 15:45:35 EDT 2004)
          mtime: 1085676054 (Thu May 27 12:40:54 EDT 2004)
          ctime: 1085676054 (Thu May 27 12:40:54 EDT 2004)
        blksize: 4096
         blocks: 0
          attrs: 16
           info: 1 (inode is reliable)
troutbrook.rawd
           mode: 20000100700 (-rwx------+, regular file, additional ACL info)
          inode: -465925304
            dev: 1090519114
           rdev: 0
          nlink: 1
            uid: 1076172 (benkech)
            gid: 1049089 (Domain Users)
           size: 1033 (1k, 0M)
          atime: 1085683236 (Thu May 27 14:40:36 EDT 2004)
          mtime: 1085683214 (Thu May 27 14:40:14 EDT 2004)
          ctime: 1085683247 (Thu May 27 14:40:47 EDT 2004)
        blksize: 4096
         blocks: 3
          attrs: 32
           info: 1 (inode is reliable)
troutbrook.rdch
           mode: 20000100700 (-rwx------+, regular file, additional ACL info)
          inode: -481476600
            dev: 1090519114
           rdev: 0
          nlink: 1
            uid: 1076172 (benkech)
            gid: 1049089 (Domain Users)
           size: 983 (0k, 0M)
          atime: 1085683236 (Thu May 27 14:40:36 EDT 2004)
          mtime: 1085673171 (Thu May 27 11:52:51 EDT 2004)
          ctime: 1085673171 (Thu May 27 11:52:51 EDT 2004)
        blksize: 4096
         blocks: 2
          attrs: 32
           info: 1 (inode is reliable)
-88-> /bin/ls -al
-89-> ls -al
-90->

(in reply to Rodney)
Post #: 20
Page:   [1] 2   next >   >>
All Forums >> [SFU / Interix / SUA Technology] >> SFU / Interix - Getting Started >> operation of "ls" inconsistant Page: [1] 2   next >   >>
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Search All Forums -

Advanced search


SPONSORS



Forum Software © ASPPlayground.NET Advanced Edition 2.5 ANSI

0.234