From owner-freebsd-fs@FreeBSD.ORG Sun Apr 15 12:23:18 2012 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9D583106564A for ; Sun, 15 Apr 2012 12:23:18 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from esa-jnhn.mail.uoguelph.ca (esa-jnhn.mail.uoguelph.ca [131.104.91.44]) by mx1.freebsd.org (Postfix) with ESMTP id 58D298FC08 for ; Sun, 15 Apr 2012 12:23:18 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ap8EADm9ik+DaFvO/2dsb2JhbABChXKwLIIJAQEBAwEBAQEgKyALBRYYAgINGQIpAQkmBggHBAEcBIdoBQuqfol5gS+KCIR6gRgEk0GCLIERjySDA4FA X-IronPort-AV: E=Sophos;i="4.75,425,1330923600"; d="scan'208";a="168059275" Received: from erie.cs.uoguelph.ca (HELO zcs3.mail.uoguelph.ca) ([131.104.91.206]) by esa-jnhn-pri.mail.uoguelph.ca with ESMTP; 15 Apr 2012 08:23:12 -0400 Received: from zcs3.mail.uoguelph.ca (localhost.localdomain [127.0.0.1]) by zcs3.mail.uoguelph.ca (Postfix) with ESMTP id 27E4BB404E; Sun, 15 Apr 2012 08:23:12 -0400 (EDT) Date: Sun, 15 Apr 2012 08:23:12 -0400 (EDT) From: Rick Macklem To: dave jones Message-ID: <820343268.2824968.1334492592121.JavaMail.root@erie.cs.uoguelph.ca> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [172.17.91.202] X-Mailer: Zimbra 6.0.10_GA_2692 (ZimbraWebClient - FF3.0 (Win)/6.0.10_GA_2692) Cc: freebsd-fs@freebsd.org Subject: Re: A question about msdosfs code X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Apr 2012 12:23:18 -0000 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"