This is the mail archive of the cygwin-apps 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: [maybe-ITP] gamin


On Mon, 30 Jan 2006, Yaakov S (Cygwin Ports) wrote:

> Lapo Luchini wrote:
> > I needed this patch in order to have it working on FAT32 disks, but
> > both on FAT and NTFS the test results seem quite consistent to me: all
> > is good on NTFS and all-but-test-9 on FAT.
>
> I'd rather not outright #ifndef __CYGWIN__ these if there's a better
> solution.
>
> I don't know if there's a way to determine if the drive is FAT or NTFS,

I'm sure there is -- Corinna posted a test program to cygwin@ earlier this
month that prints various attributes of the drives.  It was meant for
shares, but I'm sure it also applies to local drives.  Besides, cygcheck
prints out what kind of drive it is, so you can get some code from there
too.

> but AFAICS there is a way to determine if Windows is NT or not (and
> presume that NT is running on NTFS and not FAT, which should be the
> norm), for example:

Umm, you don't want to assume that any disk is NTFS on NT...  See below.

> http://cygnome2.sourceforge.net/install/release/nautilus/nautilus-2.4.2-cygwin.patch
>
> Although this raises an interesting question: Linux can also use FAT
> disks, so what happens then??

Exactly, and so can NT.  Better to find out what disk we're working with.

> > Test 9 checks if a directory mtime gets modified when you write a file
> > in it and I guess FAT just doesn't work that way.
>
> Possibly, but I only have NTFS drives at my disposal.

Floppies are usually FAT.  How about using one? :-)

HTH,
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_	    pechtcha@cs.nyu.edu | igor@watson.ibm.com
ZZZzz /,`.-'`'    -.  ;-;;,_		Igor Peshansky, Ph.D. (name changed!)
     |,4-  ) )-,_. ,\ (  `'-'		old name: Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte."
"But no -- you are no fool; you call yourself a fool, there's proof enough in
that!" -- Rostand, "Cyrano de Bergerac"


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