A question about msdosfs code

Rick Macklem rmacklem at uoguelph.ca
Sun Apr 15 12:23:18 UTC 2012


Dave Jones wrote:
> Hello,
> 
> I have a question about the MSDOSFSROOT_OFS definition in denode.h:
> 
> /*
> * Internal pseudo-offset for (nonexistent) directory entry for the
> root
> * dir in the root dir
> */
> #define MSDOSFSROOT_OFS 0x1fffffff
> 
> I'm wondering why setting the root directory offset is 0x1fffffff?
> Is there any formula to calculate root dir offset instead? Thank you.
> 
The root dir of FAT file systems don't have entries for "." or ".." in
them. I haven't looked at the code, but I suspect this value is just used
to tell readdir code to fake them.

rick

> Regards,
> Dave.
> _______________________________________________
> freebsd-fs at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-fs
> To unsubscribe, send any mail to "freebsd-fs-unsubscribe at freebsd.org"


More information about the freebsd-fs mailing list