xfs
[Top] [All Lists]

[PATCH] make growfs check device size limits too

To: xfs@xxxxxxxxxxx
Subject: [PATCH] make growfs check device size limits too
From: Nathan Scott <nscott@xxxxxxxxxx>
Date: Thu, 26 Apr 2007 16:30:14 +1000
Organization: Aconex
Reply-to: nscott@xxxxxxxxxx
Sender: xfs-bounce@xxxxxxxxxxx
On the mount path we check for a superblock that describes a filesystem
to large for the running kernel to handle.  This catches the case of an
attempt to mount a >16TB filesystem on i386 (where we are limited by the
page->index size, for XFS metadata buffers in xfs_buf.c).

This patch makes similar checks on the growfs code paths for regular and
realtime growth, else we can end up with filesystem corruption, it would
seem (from #xfs chatter).  Untested patch follows; probably better to do
this as a macro, in a header, and call that in each place...?

cheers.

-- 
Nathan

Attachment: growfs.patch
Description: Text Data

<Prev in Thread] Current Thread [Next in Thread>