Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 Apr 2012 08:23:12 -0400 (EDT)
From:      Rick Macklem <rmacklem@uoguelph.ca>
To:        dave jones <s.dave.jones@gmail.com>
Cc:        freebsd-fs@freebsd.org
Subject:   Re: A question about msdosfs code
Message-ID:  <820343268.2824968.1334492592121.JavaMail.root@erie.cs.uoguelph.ca>
In-Reply-To: <CANf5e8Y9oLp0v_J6RNpspjVgyXCziVX4qXz8ZdQDxZv_Y7_0_w@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-fs
> To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?820343268.2824968.1334492592121.JavaMail.root>