From owner-freebsd-fs@FreeBSD.ORG Sun Apr 15 07:36:03 2012 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C7B5B106564A for ; Sun, 15 Apr 2012 07:36:03 +0000 (UTC) (envelope-from s.dave.jones@gmail.com) Received: from mail-vx0-f182.google.com (mail-vx0-f182.google.com [209.85.220.182]) by mx1.freebsd.org (Postfix) with ESMTP id 7FEF28FC0C for ; Sun, 15 Apr 2012 07:36:03 +0000 (UTC) Received: by vcmm1 with SMTP id m1so3949243vcm.13 for ; Sun, 15 Apr 2012 00:35:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=mRh4M/YUoNzhGWFIGly5q2VRlTiHeJ8tVMF8d6NAj5k=; b=sX95k2DaOSUevXCuXxPgePMjdBRe7Ft8pEIXnTum/EdGtLXB7UbGkQWljM2gg2+arc M9Pjgxyj+Ae/zoYNJ7wtwV1abElTgVc8C3gd5QYpY64/CUgMisoYUorLQT+ttxrqhEmT vzv07prNYUh/hD1uQUmaV0XkJozMqzQqdrnjWYvCwkvXyJpWudo95eqtKJmi1SXhvJZW pDuxq/4/Wis5HkNr4D7w8HIVQlUEfJ3FwKiRSOW9KTX5jHA3nPNaTba0BAUQvncg0LXt YwOiOhSmyA04Zj1VlCpq7LE3LPdOhmM5iVI3Frs/JW7kjC5sD5H4ZR1ol/2JNCwgZAFk QYuw== MIME-Version: 1.0 Received: by 10.52.65.170 with SMTP id y10mr3090041vds.48.1334475357375; Sun, 15 Apr 2012 00:35:57 -0700 (PDT) Received: by 10.52.95.2 with HTTP; Sun, 15 Apr 2012 00:35:57 -0700 (PDT) Date: Sun, 15 Apr 2012 15:35:57 +0800 Message-ID: From: dave jones To: freebsd-fs@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: 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 07:36:03 -0000 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. Regards, Dave.