public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Re: Another call for filesystem testing
@ 2011-12-12 15:30 Fergus
  0 siblings, 0 replies; 11+ messages in thread
From: Fergus @ 2011-12-12 15:30 UTC (permalink / raw)
  To: Cygwin ML; +Cc: Fergus

 > Btw., can you please provide the output from
 > /usr/lib/csih/getVolInfo /x/wrk
 > I never saw the volume information returned by this ext2 driver yet.

~> /usr/lib/csih/getVolInfo.exe /x/wrk
Device Type        : 7
Characteristics    : 20
Volume Name        : <>
Serial Number      : 2548180820
Max Filenamelength : 255
Filesystemname     : <Ext2>
Flags              : 7
   FILE_CASE_SENSITIVE_SEARCH  : TRUE
   FILE_CASE_PRESERVED_NAMES   : TRUE
   FILE_UNICODE_ON_DISK        : TRUE
   FILE_PERSISTENT_ACLS        : FALSE
   FILE_FILE_COMPRESSION       : FALSE
   FILE_VOLUME_QUOTAS          : FALSE
   FILE_SUPPORTS_SPARSE_FILES  : FALSE
   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          : FALSE
   FILE_READ_ONLY_VOLUME       : FALSE
   FILE_SEQUENTIAL_WRITE_ONCE  : FALSE
   FILE_SUPPORTS_TRANSACTIONS  : FALSE
~>


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

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Another call for filesystem testing
  2011-12-12 19:43 ` Charles Wilson
@ 2011-12-13 11:43   ` Corinna Vinschen
  0 siblings, 0 replies; 11+ messages in thread
From: Corinna Vinschen @ 2011-12-13 11:43 UTC (permalink / raw)
  To: cygwin

On Dec 12 14:43, Charles Wilson wrote:
> On 12/9/2011 3:35 PM, Corinna Vinschen wrote:
> > I have a well-known problem.  I just don't have all filesystems
> > available for testing.  What I need are testers for a certain, very
> > simple functionality on any filesystem you can get hold of.
> 
> I've got a variety of file systems here.

Thanks.  I think I have enough test results now.  As it turned out,
it doesn't make the faintest sense to use NtQueryFullAttributesFile.
It's pity since it seemed such a nice way to simplify the code.  Right,
but unfortunately every call is actually converted to 3 calls internally,
open/query/close.  Which doesn't make a lot of sense if you already have
a handle to the open file.  Oh well.

Thanks again to all testers,
Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

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

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Another call for filesystem testing
  2011-12-09 20:36 Corinna Vinschen
                   ` (2 preceding siblings ...)
  2011-12-12 13:03 ` Franz Sirl
@ 2011-12-12 19:43 ` Charles Wilson
  2011-12-13 11:43   ` Corinna Vinschen
  3 siblings, 1 reply; 11+ messages in thread
From: Charles Wilson @ 2011-12-12 19:43 UTC (permalink / raw)
  To: cygwin

On 12/9/2011 3:35 PM, Corinna Vinschen wrote:
> I have a well-known problem.  I just don't have all filesystems
> available for testing.  What I need are testers for a certain, very
> simple functionality on any filesystem you can get hold of.

I've got a variety of file systems here.

netapp:


Device Type        : 6
Characteristics    : 10
Volume Name        : <DFS>
Serial Number      : 2961258662
Max Filenamelength : 255
Filesystemname     : <NTFS>
Flags              : c700ff
  FILE_CASE_SENSITIVE_SEARCH  : TRUE
  FILE_CASE_PRESERVED_NAMES   : TRUE
  FILE_UNICODE_ON_DISK        : TRUE
  FILE_PERSISTENT_ACLS        : TRUE
  FILE_FILE_COMPRESSION       : TRUE
  FILE_VOLUME_QUOTAS          : TRUE
  FILE_SUPPORTS_SPARSE_FILES  : TRUE
  FILE_SUPPORTS_REPARSE_POINTS: TRUE
  FILE_SUPPORTS_REMOTE_STORAGE: FALSE
  FILE_VOLUME_IS_COMPRESSED   : FALSE
  FILE_SUPPORTS_OBJECT_IDS    : TRUE
  FILE_SUPPORTS_ENCRYPTION    : TRUE
  FILE_NAMED_STREAMS          : TRUE
  FILE_READ_ONLY_VOLUME       : FALSE
  FILE_SEQUENTIAL_WRITE_ONCE  : FALSE
  FILE_SUPPORTS_TRANSACTIONS  : FALSE


NtQueryFullAttributesFile(\??\S:\General\AIP_IRD\Tools) by name works
NtQueryFullAttributesFile(\??\S:\General\AIP_IRD\Tools) by handle works
NtQueryFullAttributesFile(\??\S:\General\AIP_IRD\Tools\bin\ct_lspriv) by
name works
NtQueryFullAttributesFile(\??\S:\General\AIP_IRD\Tools\bin\ct_lspriv) by
handle works


mvfs (7.1)

Device Type        : 7
Characteristics    : 10
Volume Name        : <CCase>
Serial Number      : 36984713
Max Filenamelength : 255
Filesystemname     : <MVFS>
Flags              : 3
  FILE_CASE_SENSITIVE_SEARCH  : TRUE
  FILE_CASE_PRESERVED_NAMES   : TRUE
  FILE_UNICODE_ON_DISK        : FALSE
  FILE_PERSISTENT_ACLS        : FALSE
  FILE_FILE_COMPRESSION       : FALSE
  FILE_VOLUME_QUOTAS          : FALSE
  FILE_SUPPORTS_SPARSE_FILES  : FALSE
  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          : FALSE
  FILE_READ_ONLY_VOLUME       : FALSE
  FILE_SEQUENTIAL_WRITE_ONCE  : FALSE
  FILE_SUPPORTS_TRANSACTIONS  : FALSE


NtQueryFullAttributesFile(\??\M:\view\VOB\tools) by name works
NtQueryFullAttributesFile(\??\M:\view\VOB\tools) by handle works
NtQueryFullAttributesFile(\??\M:\view\VOB\tools\lib\python2.5\killableprocess.py)
by name works
NtQueryFullAttributesFile(\??\M:\view\VOB\tools\lib\python2.5\killableprocess.py)
by handle works


samba:

Device Type        : 7
Characteristics    : 10
Volume Name        : <homeshare>
Serial Number      : 73210969
Max Filenamelength : 255
Filesystemname     : <NTFS>
Flags              : 1000f
  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  : FALSE
  FILE_SUPPORTS_REPARSE_POINTS: FALSE
  FILE_SUPPORTS_REMOTE_STORAGE: FALSE
  FILE_VOLUME_IS_COMPRESSED   : FALSE
  FILE_SUPPORTS_OBJECT_IDS    : TRUE
  FILE_SUPPORTS_ENCRYPTION    : FALSE
  FILE_NAMED_STREAMS          : FALSE
  FILE_READ_ONLY_VOLUME       : FALSE
  FILE_SEQUENTIAL_WRITE_ONCE  : FALSE
  FILE_SUPPORTS_TRANSACTIONS  : FALSE

NtQueryFullAttributesFile(\??\X:\bin) by name works
NtQueryFullAttributesFile(\??\X:\bin) by handle works
NtQueryFullAttributesFile(\??\X:\bin\.cshrc) by name failed,
status code 0xc0000034
NtOpenFile(\??\X:\bin\.cshrc) failed, status code 0xc0000034

but that is wierd, so I checked again using a different fn:

NtQueryFullAttributesFile(\??\X:\bin) by name works
NtQueryFullAttributesFile(\??\X:\bin) by handle works
NtQueryFullAttributesFile(\??\X:\bin\config.guess) by name works
NtQueryFullAttributesFile(\??\X:\bin\config.guess) by handle works

$ ls -l /x/.cshrc
-rw-r--r-- 1 ???????? ???????? 4.2K Nov 17  2010 /x/.cshrc

$ ls -l /x/bin/config.guess
-rwxr-xr-x 1 ???????? ???????? 41K Jan 17  2005 /x/bin/config.guess*


There's one more filesystem (another netapp flavor) I can test, but the
server is down for repair today so I'll test it tomorrow.

--
Chuck

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

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Another call for filesystem testing
  2011-12-12 13:03 ` Franz Sirl
@ 2011-12-12 13:20   ` Corinna Vinschen
  0 siblings, 0 replies; 11+ messages in thread
From: Corinna Vinschen @ 2011-12-12 13:20 UTC (permalink / raw)
  To: cygwin

On Dec 12 14:03, Franz Sirl wrote:
> The results for NcFsd (with NovellClient 2 SP2):
> 

Thanks, but...

> NtQueryFullAttributesFile(\??\J:\FRA\xyz.tst) by name works
> NtQueryFullAttributesFile(\??\J:\FRA\xyz.tst) by handle works
> 
> 
> and for NWFS (with NovellClient 4.91 SP5 IR1 + followup patches):
> [...]
> NtQueryFullAttributesFile(\??\J:\FRA\xyz.txt) by name failed,
> status code 0xc0000034
> NtOpenFile(\??\J:\FRA\xyz.txt) failed, status code 0xc0000034

This was apparently the result of a typo.  The file in the NcFsd test
was called xyz.tst, not xyz.txt.

But it doesn't matter, I know the result for NWFS already from a
private mail I got.  It will be 0xc0000008 for "by handle" as well.


Thanks,
Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

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

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Another call for filesystem testing
  2011-12-09 20:36 Corinna Vinschen
  2011-12-09 20:50 ` David Rothenberger
  2011-12-12  5:56 ` Heiko Elger
@ 2011-12-12 13:03 ` Franz Sirl
  2011-12-12 13:20   ` Corinna Vinschen
  2011-12-12 19:43 ` Charles Wilson
  3 siblings, 1 reply; 11+ messages in thread
From: Franz Sirl @ 2011-12-12 13:03 UTC (permalink / raw)
  To: cygwin

The results for NcFsd (with NovellClient 2 SP2):

$ uname -s
CYGWIN_NT-6.1-WOW64

$ /usr/lib/csih/getVolInfo //OESI2/VOL_MISC1
Device Type        : 7
Characteristics    : 30
Volume Name        : <VOL_MISC1>
Serial Number      : 1549160268
Max Filenamelength : 255
Filesystemname     : <NcFsd>
Flags              : a2
   FILE_CASE_SENSITIVE_SEARCH  : FALSE
   FILE_CASE_PRESERVED_NAMES   : TRUE
   FILE_UNICODE_ON_DISK        : FALSE
   FILE_PERSISTENT_ACLS        : FALSE
   FILE_FILE_COMPRESSION       : FALSE
   FILE_VOLUME_QUOTAS          : TRUE
   FILE_SUPPORTS_SPARSE_FILES  : FALSE
   FILE_SUPPORTS_REPARSE_POINTS: TRUE
   FILE_SUPPORTS_REMOTE_STORAGE: FALSE
   FILE_VOLUME_IS_COMPRESSED   : FALSE
   FILE_SUPPORTS_OBJECT_IDS    : FALSE
   FILE_SUPPORTS_ENCRYPTION    : FALSE
   FILE_NAMED_STREAMS          : FALSE
   FILE_READ_ONLY_VOLUME       : FALSE
   FILE_SEQUENTIAL_WRITE_ONCE  : FALSE
   FILE_SUPPORTS_TRANSACTIONS  : FALSE

$ ./test-qfif.exe /cygdrive/j/FRA/ /cygdrive/j/FRA/xyz.tst
NtQueryFullAttributesFile(\??\J:\FRA) by name works
NtQueryFullAttributesFile(\??\J:\FRA) by handle works
NtQueryFullAttributesFile(\??\J:\FRA\xyz.tst) by name works
NtQueryFullAttributesFile(\??\J:\FRA\xyz.tst) by handle works


and for NWFS (with NovellClient 4.91 SP5 IR1 + followup patches):

$ uname -s
CYGWIN_NT-5.1

$ /usr/lib/csih/getVolInfo.exe //oesi2/vol_misc1
Device Type        : 7
Characteristics    : 30
Volume Name        : <VOL_MISC1>
Serial Number      : 167772417
Max Filenamelength : 255
Filesystemname     : <NWFS>
Flags              : 2
   FILE_CASE_SENSITIVE_SEARCH  : FALSE
   FILE_CASE_PRESERVED_NAMES   : TRUE
   FILE_UNICODE_ON_DISK        : FALSE
   FILE_PERSISTENT_ACLS        : FALSE
   FILE_FILE_COMPRESSION       : FALSE
   FILE_VOLUME_QUOTAS          : FALSE
   FILE_SUPPORTS_SPARSE_FILES  : FALSE
   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          : FALSE
   FILE_READ_ONLY_VOLUME       : FALSE
   FILE_SEQUENTIAL_WRITE_ONCE  : FALSE
   FILE_SUPPORTS_TRANSACTIONS  : FALSE

$ ./test-qfif.exe /cygdrive/j/FRA/ /cygdrive/j/FRA/xyz.txt
NtQueryFullAttributesFile(\??\J:\FRA) by name works
NtQueryFullAttributesFile(\??\J:\FRA) by handle failed,
status code 0xc0000008
NtQueryFullAttributesFile(\??\J:\FRA\xyz.txt) by name failed,
status code 0xc0000034
NtOpenFile(\??\J:\FRA\xyz.txt) failed, status code 0xc0000034

Franz.

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

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Another call for filesystem testing
  2011-12-12  9:57 Fergus
@ 2011-12-12 11:09 ` Corinna Vinschen
  0 siblings, 0 replies; 11+ messages in thread
From: Corinna Vinschen @ 2011-12-12 11:09 UTC (permalink / raw)
  To: cygwin

On Dec 12 09:57, Fergus wrote:
> XP Pro SP3
> 
> I get the following failure whether I use the current cygwin1.dll
> CYGWIN_NT-5.1 lunatick 1.7.9(0.237/5/3) 2011-03-29 10:10 i686 Cygwin
> or today's test cygwin1.dll
> CYGWIN_NT-5.1 lunatick 1.7.10s(0.255/5/3) 20111212 01:22:59 i686 Cygwin
> (as not certain what you were asking).

The testcase only tests direct calls to native NT functions.  The Cygwin
version really doesn't matter.

> Assume unimportant, but I have
> ~> mount -m
> none / cygdrive binary,user 0 0
> so /cygdrive/q/ shorthands to /q/.
> 
> Just checking, where Q: is FAT32
> 
> ~> ./test-qfif.exe /q/wrk
> NtQueryFullAttributesFile(\??\Q:\wrk) by name works
> NtQueryFullAttributesFile(\??\Q:\wrk) by handle works
> ~> ./test-qfif.exe /q/wrk/Wording.txt
> NtQueryFullAttributesFile(\??\Q:\wrk\Wording.txt) by name works
> NtQueryFullAttributesFile(\??\Q:\wrk\Wording.txt) by handle works
> 
> all ok, as expected. BUT
> 
> X: is ext2, made accessible to Windows using the software at
> http://www.fs-driver.org/. There is a failure as follows:
> 
> ~> ./test-qfif.exe /x/wrk
> NtQueryFullAttributesFile(\??\X:\wrk) by name works
> NtQueryFullAttributesFile(\??\X:\wrk) by handle works
> ~> ./test-qfif.exe /x/wrk/Wording.txt
> NtQueryFullAttributesFile(\??\X:\wrk\Wording.txt) by name works
> NtQueryFullAttributesFile(\??\X:\wrk\Wording.txt) by handle failed,
> status code 0xc000003a

Thanks for the test.  YA driver which implements by handle operation
only for directories.  Oh well.

Btw., can you please provide the output from

  /usr/lib/csih/getVolInfo /x/wrk

I never saw the volume information returned by this ext2 driver yet.


Thanks,
Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

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

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Another call for filesystem testing
@ 2011-12-12  9:57 Fergus
  2011-12-12 11:09 ` Corinna Vinschen
  0 siblings, 1 reply; 11+ messages in thread
From: Fergus @ 2011-12-12  9:57 UTC (permalink / raw)
  To: Cygwin ML; +Cc: Fergus

XP Pro SP3

I get the following failure whether I use the current cygwin1.dll
CYGWIN_NT-5.1 lunatick 1.7.9(0.237/5/3) 2011-03-29 10:10 i686 Cygwin
or today's test cygwin1.dll
CYGWIN_NT-5.1 lunatick 1.7.10s(0.255/5/3) 20111212 01:22:59 i686 Cygwin
(as not certain what you were asking).

Assume unimportant, but I have
~> mount -m
none / cygdrive binary,user 0 0
so /cygdrive/q/ shorthands to /q/.

Just checking, where Q: is FAT32

~> ./test-qfif.exe /q/wrk
NtQueryFullAttributesFile(\??\Q:\wrk) by name works
NtQueryFullAttributesFile(\??\Q:\wrk) by handle works
~> ./test-qfif.exe /q/wrk/Wording.txt
NtQueryFullAttributesFile(\??\Q:\wrk\Wording.txt) by name works
NtQueryFullAttributesFile(\??\Q:\wrk\Wording.txt) by handle works

all ok, as expected. BUT

X: is ext2, made accessible to Windows using the software at 
http://www.fs-driver.org/. There is a failure as follows:

~> ./test-qfif.exe /x/wrk
NtQueryFullAttributesFile(\??\X:\wrk) by name works
NtQueryFullAttributesFile(\??\X:\wrk) by handle works
~> ./test-qfif.exe /x/wrk/Wording.txt
NtQueryFullAttributesFile(\??\X:\wrk\Wording.txt) by name works
NtQueryFullAttributesFile(\??\X:\wrk\Wording.txt) by handle failed,
status code 0xc000003a

Fergus



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

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Another call for filesystem testing
  2011-12-12  5:56 ` Heiko Elger
@ 2011-12-12  9:09   ` Corinna Vinschen
  0 siblings, 0 replies; 11+ messages in thread
From: Corinna Vinschen @ 2011-12-12  9:09 UTC (permalink / raw)
  To: cygwin

On Dec 12 05:56, Heiko Elger wrote:
> Here's a test from Win7/64 SP1 with MVFS version 7.1.1.7 (Wed Aug  3 22:33:34 
> 2011).
> 
> ente59@PCFX061 /cygdrive/c/MyDevelopment/cygwin/test-qfif
> $ ./test-
> qfif.exe /cygdrive/v/Stg_V5.108_ente59_iv/stg2/steuerung /cygdrive/v/Stg_V5.108
> _ente59_iv/stg2/steuerung/makefile
> NtQueryFullAttributesFile(\??\V:\Stg_V5.108_ente59_iv\stg2\steuerung) by name 
> works
> NtQueryFullAttributesFile(\??\V:\Stg_V5.108_ente59_iv\stg2\steuerung) by 
> handle works
> NtQueryFullAttributesFile(\??\V:\Stg_V5.108_ente59_iv\stg2\steuerung\makefile) 
> by name works
> NtQueryFullAttributesFile(\??\V:\Stg_V5.108_ente59_iv\stg2\steuerung\makefile) 
> by handle works

Thanks David, thanks Heiko.  So MVFS works fine apparently.

Does anybody have access to more filesystems to run my little test?


Thanks,
Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

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

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Another call for filesystem testing
  2011-12-09 20:36 Corinna Vinschen
  2011-12-09 20:50 ` David Rothenberger
@ 2011-12-12  5:56 ` Heiko Elger
  2011-12-12  9:09   ` Corinna Vinschen
  2011-12-12 13:03 ` Franz Sirl
  2011-12-12 19:43 ` Charles Wilson
  3 siblings, 1 reply; 11+ messages in thread
From: Heiko Elger @ 2011-12-12  5:56 UTC (permalink / raw)
  To: cygwin

Here's a test from Win7/64 SP1 with MVFS version 7.1.1.7 (Wed Aug  3 22:33:34 
2011).

ente59@PCFX061 /cygdrive/c/MyDevelopment/cygwin/test-qfif
$ uname -a
CYGWIN_NT-6.1-WOW64 PCFX061 1.7.10s(0.255/5/3) 20111129 17:41:48 i686 Cygwin

ente59@PCFX061 /cygdrive/c/MyDevelopment/cygwin/test-qfif
$ /usr/lib/csih/getVolInfo /cygdrive/v
Device Type        : 7
Characteristics    : 10
Volume Name        : <CCase>
Serial Number      : 36984713
Max Filenamelength : 255
Filesystemname     : <MVFS>
Flags              : 3
  FILE_CASE_SENSITIVE_SEARCH  : TRUE
  FILE_CASE_PRESERVED_NAMES   : TRUE
  FILE_UNICODE_ON_DISK        : FALSE
  FILE_PERSISTENT_ACLS        : FALSE
  FILE_FILE_COMPRESSION       : FALSE
  FILE_VOLUME_QUOTAS          : FALSE
  FILE_SUPPORTS_SPARSE_FILES  : FALSE
  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          : FALSE
  FILE_READ_ONLY_VOLUME       : FALSE
  FILE_SEQUENTIAL_WRITE_ONCE  : FALSE
  FILE_SUPPORTS_TRANSACTIONS  : FALSE

ente59@PCFX061 /cygdrive/c/MyDevelopment/cygwin/test-qfif
$ ./test-
qfif.exe /cygdrive/v/Stg_V5.108_ente59_iv/stg2/steuerung /cygdrive/v/Stg_V5.108
_ente59_iv/stg2/steuerung/makefile
NtQueryFullAttributesFile(\??\V:\Stg_V5.108_ente59_iv\stg2\steuerung) by name 
works
NtQueryFullAttributesFile(\??\V:\Stg_V5.108_ente59_iv\stg2\steuerung) by 
handle works
NtQueryFullAttributesFile(\??\V:\Stg_V5.108_ente59_iv\stg2\steuerung\makefile) 
by name works
NtQueryFullAttributesFile(\??\V:\Stg_V5.108_ente59_iv\stg2\steuerung\makefile) 
by handle works

regards
Heiko Elger


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

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Another call for filesystem testing
  2011-12-09 20:36 Corinna Vinschen
@ 2011-12-09 20:50 ` David Rothenberger
  2011-12-12  5:56 ` Heiko Elger
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 11+ messages in thread
From: David Rothenberger @ 2011-12-09 20:50 UTC (permalink / raw)
  To: cygwin

Here's a test from XP SP3 with MVFS using an old version of
ClearCase.

501 ~> uname -s
CYGWIN_NT-5.1

502 ~> /usr/lib/csih/getVolInfo /m/...
Device Type        : 7
Characteristics    : 10
Volume Name        : <CCase>
Serial Number      : 36984713
Max Filenamelength : 255
Filesystemname     : <MVFS>
Flags              : 3
  FILE_CASE_SENSITIVE_SEARCH  : TRUE
  FILE_CASE_PRESERVED_NAMES   : TRUE
  FILE_UNICODE_ON_DISK        : FALSE
  FILE_PERSISTENT_ACLS        : FALSE
  FILE_FILE_COMPRESSION       : FALSE
  FILE_VOLUME_QUOTAS          : FALSE
  FILE_SUPPORTS_SPARSE_FILES  : FALSE
  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          : FALSE
  FILE_READ_ONLY_VOLUME       : FALSE
  FILE_SEQUENTIAL_WRITE_ONCE  : FALSE
  FILE_SUPPORTS_TRANSACTIONS  : FALSE

503 ~> /c/temp/test-qfif/test-qfif <dir> <file>
NtQueryFullAttributesFile(\??\M:\<dir>) by name works
NtQueryFullAttributesFile(\??\M:\<dir>) by handle works
NtQueryFullAttributesFile(\??\M:\<file>) by name works
NtQueryFullAttributesFile(\??\M:\<file>) by handle works

-- 
David Rothenberger  ----  daveroth@acm.org

"Well hello there Charlie Brown, you blockhead."
                -- Lucy Van Pelt

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

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Another call for filesystem testing
@ 2011-12-09 20:36 Corinna Vinschen
  2011-12-09 20:50 ` David Rothenberger
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: Corinna Vinschen @ 2011-12-09 20:36 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 2298 bytes --]

Hi guys,


I have a well-known problem.  I just don't have all filesystems
available for testing.  What I need are testers for a certain, very
simple functionality on any filesystem you can get hold of.

I tested it locally on NTFS and FAT, as well as CDFS, as well as on 3.x
Samba and via NFS.  I tested from W2K, W2K3 and W7.  I would be very
interested to learn if this functionality is supported by other
filesystems as well.

Testing is simple.  Attached you'll find the source code of a very
simple testcase which calls certain native NT functions.  For ease of
use, the application allows to enter a Cygwin POSIX path and converts
that to native NT notation by itself.

You have access to AFS, MVFS, NWFS, NcFsd, Netapp, UDF, UNIXFS, SUNWNFS,
any CIFS or old Samba versions?  Please test!  Also, if you try it on
local or remote NTFS or FAT filesystems and it fails, I'd like to see
the results.

For testing, run the application twice per filesystem, one time for a
directory, one time for a file.  Also, please report your OS version per
the output of `uname -s'.  It's possible that different OSes show
different results.

So, here's how you do it.  Build it like this:

  $ gcc -o test-qfif test-qfif.c -lntdll

Then test for existing local dir and file:

  $ uname -s
  CYGWIN_NT-x.x
  $ /usr/lib/csih/getVolInfo //server/share
  Device Type        : 7
  Characteristics    : 20
  [...etc...]
  $ ./test-qfif /cygdrive/d/dir /cygdrive/d/dir/file
  NtQueryFullAttributesFile(\??\D:\dir) by name works
  NtQueryFullAttributesFile(\??\D:\dir) by handle works
  NtQueryFullAttributesFile(\??\D:\dir\file) by name works
  NtQueryFullAttributesFile(\??\D:\dir\file) by handle works

Or for a share (with example for a failure):

  $ uname -s
  CYGWIN_NT-x.x
  $ /usr/lib/csih/getVolInfo //server/share
  [...]
  $ ./test-qfif //server/share //server/share/file
  NtQueryFullAttributesFile(\??\D:\dir) by name works
  NtQueryFullAttributesFile(\??\D:\dir) by handle fails, status code 0xc000000d
  NtQueryFullAttributesFile(\??\D:\dir\file) by name works
  NtQueryFullAttributesFile(\??\D:\dir\file) by handle works


Thanks for your help,
Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

[-- Attachment #2: test-qfif.c --]
[-- Type: text/plain, Size: 2022 bytes --]

#include <stdio.h>
#include <string.h>
#include <wchar.h>
#include <errno.h>
#include <locale.h>
#include <windows.h>
#include <ddk/ntifs.h>
#include <sys/cygwin.h>

int
main (int argc, char **argv)
{
  WCHAR pathbuf[1024]; /* Should be big enough for this test */
  WCHAR *path;
  UNICODE_STRING upath;
  OBJECT_ATTRIBUTES attr, attr2;
  NTSTATUS status;
  HANDLE h;
  IO_STATUS_BLOCK io;
  FILE_NETWORK_OPEN_INFORMATION fnoi;

  if (argc < 2)
    {
      fprintf (stderr, "Usage: %s path\n", argv[0]);
      return 1;
    }
  setlocale (LC_ALL, "");
  while (--argc > 0)
    {
      if (cygwin_conv_path (CCP_POSIX_TO_WIN_W, *++argv, pathbuf + 6,
			1024 * sizeof (WCHAR)))
	{
	  fprintf (stderr, "%s: Path conversion failed: %s\n",
		   strerror (errno));
	  continue;
	}
      if (pathbuf[6] == L'\\' && pathbuf[7] == L'\\')
	path = wcsncpy (pathbuf, L"\\??\\UNC", 7);
      else
	path = wcsncpy (pathbuf + 2, L"\\??\\", 4);

      RtlInitUnicodeString (&upath, path);
      InitializeObjectAttributes (&attr, &upath, OBJ_CASE_INSENSITIVE,
				  NULL, NULL);
      status = NtQueryFullAttributesFile (&attr, &fnoi);
      if (!NT_SUCCESS (status))
	printf ("NtQueryFullAttributesFile(%ls) by name failed,\n"
		"status code 0x%08lx\n", path, status);
      else
	printf ("NtQueryFullAttributesFile(%ls) by name works\n", path);

      status = NtOpenFile (&h, READ_CONTROL | FILE_READ_ATTRIBUTES, &attr, &io,
			   FILE_SHARE_VALID_FLAGS, 0);
      if (!NT_SUCCESS (status))
	{
	  fprintf (stderr, "NtOpenFile(%ls) failed, status code 0x%08lx\n",
		   path, status);
	  continue;
	}

      RtlInitUnicodeString (&upath, L"");
      InitializeObjectAttributes (&attr, &upath, OBJ_CASE_INSENSITIVE, h, NULL);
      status = NtQueryFullAttributesFile (&attr, &fnoi);
      if (!NT_SUCCESS (status))
	printf ("NtQueryFullAttributesFile(%ls) by handle failed,\n"
		"status code 0x%08lx\n", path, status);
      else
	printf ("NtQueryFullAttributesFile(%ls) by handle works\n", path);
      NtClose (h);
    }
  return 0;
}


[-- Attachment #3: Type: text/plain, Size: 218 bytes --]

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

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2011-12-13 11:43 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-12 15:30 Another call for filesystem testing Fergus
  -- strict thread matches above, loose matches on Subject: below --
2011-12-12  9:57 Fergus
2011-12-12 11:09 ` Corinna Vinschen
2011-12-09 20:36 Corinna Vinschen
2011-12-09 20:50 ` David Rothenberger
2011-12-12  5:56 ` Heiko Elger
2011-12-12  9:09   ` Corinna Vinschen
2011-12-12 13:03 ` Franz Sirl
2011-12-12 13:20   ` Corinna Vinschen
2011-12-12 19:43 ` Charles Wilson
2011-12-13 11:43   ` Corinna Vinschen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).