delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2019/09/23/19:40:32

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:reply-to:subject:to:references:from:message-id
:date:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=D9qiJhtzVx23+3Jx
ExBpuwi2Y6D3xfCLJyQbW2Z30z964rvChQl5MPqnJsMad3NPRETDF9GMqI4QrEtP
xn3GdBbwU4ZNJRIlnlcMr/lbeTfbJ3+6gmjqoTE9uHkFaLTw3s/jk3xWD/f7kvW7
pBAzLPWA0uaZhZts6D8KoR2VGC8=
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:reply-to:subject:to:references:from:message-id
:date:mime-version:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=H1xovPKMNgirI1P1Wgd6zS
F9K7k=; b=bxu9mWZn/pIoJH5SrE5at03UZCcPwMTZfykDZqECt+AJLfmdwkvh/z
PTCQb/b0HezqIKkH267OB56hBWEpBcqGIllgKRs1Ii0qCnmQEusHzfr265SlBjq4
nvRFjtqhoXPGg+Da+Q88o5rurdlNtYIpWNNkPkkENdki5GjRkxFYU=
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-Spam-SWARE-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy=Sector, Physical, Serial
X-HELO: smtp-out-so.shaw.ca
Reply-To: Brian DOT Inglis AT SystematicSw DOT ab DOT ca
Subject: Re: ls \\\\\?\\DRIVE\\ Aborted (core dumped)
To: cygwin AT cygwin DOT com
References: <1569223086 DOT 860642696 AT f357 DOT i DOT mail DOT ru> <CAJLNCaRU3VtPUu=q+R+-X0PurudJ0_8LmHHGKJkkETJtCPDX3Q AT mail DOT gmail DOT com> <5ccc23b3-0240-7382-d018-a7a6bf285f47 AT cornell DOT edu> <5e1afbfe-997a-a528-acfc-38512310041a AT SystematicSw DOT ab DOT ca> <4210536081 DOT 20190924012630 AT yandex DOT ru>
From: Brian Inglis <Brian DOT Inglis AT SystematicSw DOT ab DOT ca>
Openpgp: preference=signencrypt
Message-ID: <647f1115-db8e-e37d-4b5a-33180b5afde5@SystematicSw.ab.ca>
Date: Mon, 23 Sep 2019 17:39:35 -0600
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0
MIME-Version: 1.0
In-Reply-To: <4210536081.20190924012630@yandex.ru>
X-IsSubscribed: yes

On 2019-09-23 16:26, Andrey Repin wrote:
>> On 2019-09-23 09:02, Ken Brown wrote:
>>> On 9/23/2019 10:42 AM, Mark Zhitomirski wrote:
>>>> While trying different path names I've hit the following crash:
>>>> $ ls \\\\\?\\DRIVE\\
>>>> assertion "p >= path" failed: file
>>>> "/home/corinna/src/cygwin/cygwin-3.0.7/cygwin-3.0.7-1.x86_64/src/newlib-cygwin/winsup/cygwin/path.cc",
>>>> line 2916, function: int symlink_info::check(char*, const
>>>> suffix_info*, fs_info&, path_conv_handle&)
>>>> Aborted (core dumped)
> $ ls -ld \\\\\?\\C:\\
> drwxr-xr-x 1 anrdaemon None 0 сен 13 23:19 '\\?\C:\'
> WJFFM
>>> Thanks for the report.  I can confirm the crash.  I'll look into it.
>> Although:
>> $ ll $SYSTEMDRIVE\\
>> lists normally, the owner and group is the current user, whereas the correct
>> owners and groups are shown by:
>> $ ll /proc/cygdrive/c/
> That did not work for me, both show current user:group.
> For reference,
> fstab:
> none / cygdrive noacl,binary,nouser,posix=0 0 0
> $ mount
> C: on /c type ntfs (binary,noacl,posix=0,noumount,auto)
>> and Cygwin really does not like the entries in:
>> $ ll \\\\\?\\*\\
>> use of any name instead of *, or none causes a crash:
>> $ ll \\\\\?\\Boot\\
>> $ ll \\\\\?\\
> I wonder, what have you tried to reach here?

The Win 32 unlimited absolute path length file name space \\?\,
just as \\.\ is the Win 32 device name space:
https://docs.microsoft.com/en-ca/windows/win32/fileio/naming-a-file

Compare:
> fsutil fsinfo ntfsinfo \\.\C:
NTFS Volume Serial Number :        0x80ffb5d906b8d438
NTFS Version   :                   3.1
LFS Version    :                   2.0
Number Sectors :                   0x00000000744bc466
Total Clusters :                   0x000000000e89788c
Free Clusters  :                   0x0000000009861b37
Total Reserved :                   0x000000000000b4b0
Bytes Per Sector  :                512
Bytes Per Physical Sector :        4096
Bytes Per Cluster :                4096
Bytes Per FileRecord Segment    :  1024
Clusters Per FileRecord Segment :  0
Mft Valid Data Length :            0x00000000e4f00000
Mft Start Lcn  :                   0x00000000000ad74c
Mft2 Start Lcn :                   0x0000000000000002
Mft Zone Start :                   0x000000000522ce40
Mft Zone End   :                   0x0000000005239660
Max Device Trim Extent Count :     0
Max Device Trim Byte Count :       0x0
Max Volume Trim Extent Count :     62
Max Volume Trim Byte Count :       0x40000000

> fsutil fsinfo ntfsinfo C:
NTFS Volume Serial Number :        0x80ffb5d906b8d438
NTFS Version   :                   3.1
LFS Version    :                   2.0
Number Sectors :                   0x00000000744bc466
Total Clusters :                   0x000000000e89788c
Free Clusters  :                   0x0000000009861b37
Total Reserved :                   0x000000000000b4b0
Bytes Per Sector  :                512
Bytes Per Physical Sector :        4096
Bytes Per Cluster :                4096
Bytes Per FileRecord Segment    :  1024
Clusters Per FileRecord Segment :  0
Mft Valid Data Length :            0x00000000e4f00000
Mft Start Lcn  :                   0x00000000000ad74c
Mft2 Start Lcn :                   0x0000000000000002
Mft Zone Start :                   0x000000000522ce40
Mft Zone End   :                   0x0000000005239660
Max Device Trim Extent Count :     0
Max Device Trim Byte Count :       0x0
Max Volume Trim Extent Count :     62
Max Volume Trim Byte Count :       0x40000000
Resource Manager Identifier :      99B60DE5-842F-11E1-98AF-D71846560B56
					^ Object Identifier

-- 
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

This email may be disturbing to some readers as it contains
too much technical detail. Reader discretion is advised.

--
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