delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1999/01/30/05:28:59

From: Martin Str|mberg <ams AT ludd DOT luth DOT se>
Message-Id: <199901301027.LAA24499@father.ludd.luth.se>
Subject: FAT32 (xstat.c)
To: djgpp-workers AT delorie DOT com (DJGPP-WORKERS)
Date: Sat, 30 Jan 1999 11:27:46 +0100 (MET)
X-Mailer: ELM [version 2.4ME+ PL15 (25)]
MIME-Version: 1.0
Reply-To: djgpp-workers AT delorie DOT com

I'm trying to understand what's going on in libc/posix/sys/stat/xstat.c.
In particular in _invent_inode().

When is st_inode wider than a short int?


I think I remember reading somewhere the maximum cluster number on FAT32
was less than 2^31, something like 2^29. But I can't find that piece of
information anywhere. Anyone know?

If that's so, then by using LONG_MAX and counting downwards should be
sufficient to generate unique inode numbers.


Shostakovich, String Quartet No. 11,

							MartinS

- Raw text -


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