linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Matthew Wilcox <matthew@wil.cx>
To: Tony Battersby <tonyb@cybernetics.com>
Cc: linux-fsdevel@vger.kernel.org
Subject: Re: [PATCH] [RFC] LBD fixes for Linux 2.6.10 [2/2]
Date: Thu, 13 Jan 2005 18:43:02 +0000	[thread overview]
Message-ID: <20050113184302.GC30982@parcelfarce.linux.theplanet.co.uk> (raw)
In-Reply-To: <05Jan11.134911est.333426@cyborg.cybernetics.com>

On Tue, Jan 11, 2005 at 01:47:53PM -0500, Tony Battersby wrote:
> Here is an "example" patch to fix some of the LBD issues with various
> filesystems (ext3, reiserfs, xfs).  Unfortunately it looks like there
> are many more LBD problems with the filesystems that I didn't fix, so I
> am just calling this an "example" patch that shows some of what needs
> to be done, but doesn't fix everything.  I am not a filesystem expert,
> so I would prefer to leave it to others to do a full audit of all the
> filesystems for LBD-compliance.  Specifically there are two things to
> check:
> 
> 1) Use sector_t rather than long or unsigned long for block numbers.
> For auditing, just search for all occurrences of "long" in the filesystem
> code and make sure it is not referring to a block number.

That's actually not wise.  For ext3, the block numbers _on disc_
are 32-bit in size, so making them sector_t in memory is just a waste.
reiserfs seems to be the same.  OTOH, XFS does use 64-bit blocks on disc,
so should use an explicitly 64-bit size in memory too.

-- 
"Next the statesmen will invent cheap lies, putting the blame upon 
the nation that is attacked, and every man will be glad of those
conscience-soothing falsities, and will diligently study them, and refuse
to examine any refutations of them; and thus he will by and by convince 
himself that the war is just, and will thank God for the better sleep 
he enjoys after this process of grotesque self-deception." -- Mark Twain

  reply	other threads:[~2005-01-13 18:43 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-11 18:47 [PATCH] [RFC] LBD fixes for Linux 2.6.10 [2/2] Tony Battersby
2005-01-13 18:43 ` Matthew Wilcox [this message]
2005-01-13 18:54   ` Christoph Hellwig
2005-01-13 20:46   ` Tony Battersby

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050113184302.GC30982@parcelfarce.linux.theplanet.co.uk \
    --to=matthew@wil.cx \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=tonyb@cybernetics.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).