delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/08/26/05:15:30

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:to:from:subject:date:message-id:references
:mime-version:content-type:content-transfer-encoding; q=dns; s=
default; b=dId7Gxx/agwZpLm/ebAEWy7b5wDPtrUcXKep3ZmO0xw05LBS3hW2f
SVoWk0mmaHKqO+hSkmF+Lq5K6hVXhUNUsgrd/nnsIQj4BcihyfmLJ9BsIE8cI9J3
kssfDSxiUtwiS1qG0XduhLoIfXOy42Btc3LCWPkb/Drq6pAjQ4Cqdk=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:to:from:subject:date:message-id:references
:mime-version:content-type:content-transfer-encoding; s=default;
bh=ARfIPS9KJ+JbRrAZfBIvLOHCz/4=; b=bFg0kt4NSmgIcif1GfqAiClfhYc3
2X9r+EMcGaS3qbc1PKKgdk7nGhogsS8VgdqcZb1xj5qf9TIr26/bSk+VxE90KH4v
KrxCjcofLKbYhVskmTILDnBSvNDeqlrQhECQ8UAu2l7Z9uBi1vThIH6FNlwjFUe6
WDMaNcqtmT0QE/g=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-3.4 required=5.0 tests=AWL,BAYES_50,FSL_HELO_BARE_IP_2,RCVD_IN_DNSWL_LOW,RCVD_NUMERIC_HELO,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=no version=3.3.2
X-HELO: plane.gmane.org
To: cygwin AT cygwin DOT com
From: Achim Gratz <Stromeko AT NexGo DOT DE>
Subject: Re: Why does df fail to stat CIFS shares?
Date: Tue, 26 Aug 2014 09:14:52 +0000 (UTC)
Lines: 131
Message-ID: <loom.20140826T110928-929@post.gmane.org>
References: <20140627143626 DOT GA9220 AT F1S712WWS> <20140703094152 DOT GB1803 AT calimero DOT vinschen DOT de>
Mime-Version: 1.0
User-Agent: Loom/3.14 (http://gmane.org/)
X-IsSubscribed: yes

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019