xfs
[Top] [All Lists]

Re: XFS shrink (step 0)

Subject: Re: XFS shrink (step 0)
From: Ruben Porras <ruben.porras@xxxxxxxxxxx>
Date: Thu, 28 Jun 2007 12:38:44 +0200
Cc: xfs@xxxxxxxxxxx, iusty@xxxxxxxxx
In-reply-to: <20070619234248.GT86004887@sgi.com>
References: <1180715974.10796.46.camel@localhost> <20070604001632.GA86004887@sgi.com> <1182291751.5289.9.camel@localhost> <20070619234248.GT86004887@sgi.com>
Sender: xfs-bounce@xxxxxxxxxxx
User-agent: Mozilla-Thunderbird 2.0.0.4 (X11/20070618)
David Chinner wrote:
No, there isn't anything currently in existence to do this.

It's not difficult, though. What you need to do is count the number of
used blocks in the AGs that will be truncated off, and check whether
there is enough free space in the remaining AGs to hold all the
blocks that we are going to move.

I think this could be done we a single loop across the perag
array or with a simple xfs_db wrapper and some shell/awk/perl
magic.
Do you mind that is it ok to depend on shell/awk/perl? I'll do it in C looping through the perag array.


-- Rubén Porras LinWorks GmbH



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