atom feed2 messages in org.freebsd.freebsd-fsRe: A question about msdosfs code
FromSent OnAttachments
dave jonesApr 15, 2012 12:35 am 
Rick MacklemApr 15, 2012 5:22 am 
Subject:Re: A question about msdosfs code
From:Rick Macklem (rmac@uoguelph.ca)
Date:Apr 15, 2012 5:22:46 am
List:org.freebsd.freebsd-fs

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