This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Why does df fail to stat CIFS shares?


Corinna Vinschen <corinna-cygwin <at> cygwin.com> writes:
> That's the real output?  No error message, just the names of the
> mount points?  Is that the 32 or 64 bit Cygwin?

Yes:

> df /home/gratz
df: â/home/gratzâ

> Given the lack of access to netapp drives, if this is a bug in Cygwin
> (which seems likely in this case) I would need your cooperation to run
> debugging sessions to be able to come up with a fix.  Is that ok?

Sorry, can't do that.

> For a start, could you run `strace -o df.strace df' and attach the
> df.strace file to your reply?

My home dir is on a NetApp.  This one's mounted with ACL, but the same
happens for volumes that are mounted noacl.

> /usr/lib/csih/getVolInfo /home/gratz
Device Type        : 7
Characteristics    : 10
Volume Name        : <CIFS.HOMEDIR>
Serial Number      : 0
Max Filenamelength : 255
Filesystemname     : <NTFS>
Flags              : 4004f
  FILE_CASE_SENSITIVE_SEARCH  : TRUE
  FILE_CASE_PRESERVED_NAMES   : TRUE
  FILE_UNICODE_ON_DISK        : TRUE
  FILE_PERSISTENT_ACLS        : TRUE
  FILE_FILE_COMPRESSION       : FALSE
  FILE_VOLUME_QUOTAS          : FALSE
  FILE_SUPPORTS_SPARSE_FILES  : TRUE
  FILE_SUPPORTS_REPARSE_POINTS: FALSE
  FILE_SUPPORTS_REMOTE_STORAGE: FALSE
  FILE_VOLUME_IS_COMPRESSED   : FALSE
  FILE_SUPPORTS_OBJECT_IDS    : FALSE
  FILE_SUPPORTS_ENCRYPTION    : FALSE
  FILE_NAMED_STREAMS          : TRUE
  FILE_READ_ONLY_VOLUME       : FALSE
  FILE_SEQUENTIAL_WRITE_ONCE  : FALSE
  FILE_SUPPORTS_TRANSACTIONS  : FALSE

The interesting part of the trace is this:

   37 2532956 [main] df 15880 get_info_from_sd: ACL 0x41C0, uid 1124017, gid
1049089
   54 2533010 [main] df 15880 fhandler_base::fstat_helper: 0 = fstat
(\??\H:\GNU, 0x22AA00) st_size=0, st_mode=0x41C0,
st_ino=-891439913066804700st_atim=53FB5E84.243D9E50
st_ctim=53F5EE0B.37D76CE8 st_mtim=53F5EE0B.37D76CE8 st_birthtim=3FB9EC6D.0
   39 2533049 [main] df 15880 stat_worker: 0 = (\??\H:\GNU,0x22AA00)
 2857 2535906 [main] df 15880 normalize_posix_path: src /home/gratz
   57 2535963 [main] df 15880 normalize_posix_path: /home/gratz =
normalize_posix_path (/home/gratz)
   39 2536002 [main] df 15880 mount_info::conv_to_win32_path:
conv_to_win32_path (/home/gratz)
   33 2536035 [main] df 15880 set_flags: flags: binary (0x2)
   32 2536067 [main] df 15880 mount_info::conv_to_win32_path: src_path
/home/gratz, dst H:\GNU, flags 0x2, rc 0
 1289 2537356 [main] df 15880 symlink_info::check: 0x0 = NtCreateFile
(\??\H:\GNU)
 3159 2540515 [main] df 15880 symlink_info::check: not a symlink
 1814 2542329 [main] df 15880 symlink_info::check: 0 = symlink.check(H:\GNU,
0x229330) (0x2)
   59 2542388 [main] df 15880 path_conv::check: this->path(H:\GNU), has_acls(1)
   49 2542437 [main] df 15880 build_fh_pc: fh 0x180331B38, dev 000000C3
   28 2542465 [main] df 15880 statvfs: (/home/gratz, 0x22A5E0),
file_attributes 48
 1404 2543869 [main] df 15880 fhandler_disk_file::fstatvfs: 0xC000000D =
NtQueryVolumeInformationFile(\??\H:\GNU, FileFsFullSizeInformation)
 2918 2546787 [main] df 15880 fhandler_disk_file::fstatvfs: -1 =
fstatvfs(/home/gratz, 0x22A5E0)
   71 2546858 [main] df 15880 statvfs: -1 = statvfs(/home/gratz,0x22A5E0),
errno 0
 1201 2548059 [main] df 15880 fhandler_pty_slave::write: pty1,
write(0x22AB30, 2)
   60 2548119 [main] df 15880 fhandler_pty_slave::write: (656): pty
output_mutex (0x190): waiting -1 ms
   43 2548162 [main] df 15880 fhandler_pty_slave::write: (656): pty
output_mutex: acquired
   43 2548205 [main] df 15880 fhandler_pty_slave::write: (671): pty
output_mutex(0x190) released
   34 2548239 [main] df 15880 write: 2 = write(2, 0x22AB30, 2)
   66 2548305 [main] df 15880 fhandler_pty_slave::write: pty1,
write(0x18022ADE1, 1)
   37 2548342 [main] df 15880 fhandler_pty_slave::write: (656): pty
output_mutex (0x190): waiting -1 ms
   47 2548389 [main] df 15880 fhandler_pty_slave::write: (656): pty
output_mutex: acquired
   40 2548429 [main] df 15880 fhandler_pty_slave::write: (671): pty
output_mutex(0x190) released
   34 2548463 [main] df 15880 write: 1 = write(2, 0x18022ADE1, 1)
   62 2548525 [main] df 15880 fhandler_pty_slave::write: pty1,
write(0x18022ADD5, 1)
   38 2548563 [main] df 15880 fhandler_pty_slave::write: (656): pty
output_mutex (0x190): waiting -1 ms
   56 2548619 [main] df 15880 fhandler_pty_slave::write: (656): pty
output_mutex: acquired
   39 2548658 [main] df 15880 fhandler_pty_slave::write: (671): pty
output_mutex(0x190) released
   34 2548692 [main] df 15880 write: 1 = write(2, 0x18022ADD5, 1)
  307 2548999 [main] df 15880 fhandler_pty_slave::write: pty1,
write(0x10041C0C0, 17)
   40 2549039 [main] df 15880 fhandler_pty_slave::write: (656): pty
output_mutex (0x190): waiting -1 ms
   41 2549080 [main] df 15880 fhandler_pty_slave::write: (656): pty
output_mutex: acquired
   39 2549119 [main] df 15880 fhandler_pty_slave::write: (671): pty
output_mutex(0x190) released
   34 2549153 [main] df 15880 write: 17 = write(2, 0x10041C0C0, 17)
  577 2549730 [main] df 15880 fhandler_pty_slave::write: pty1,
write(0x1801D4907, 1)
   39 2549769 [main] df 15880 fhandler_pty_slave::write: (656): pty
output_mutex (0x190): waiting -1 ms
   42 2549811 [main] df 15880 fhandler_pty_slave::write: (656): pty
output_mutex: acquired
   39 2549850 [main] df 15880 fhandler_pty_slave::write: (671): pty
output_mutex(0x190) released
   34 2549884 [main] df 15880 write: 1 = write(2, 0x1801D4907, 1)
  581 2550465 [main] df 15880 close: close(1)
   38 2550503 [main] df 15880 fhandler_base::close: closing '' handle 0x228
   34 2550537 [main] df 15880 close: 0 = close(1)
  412 2550949 [main] df 15880 close: close(2)


Regards,
Achim.


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]