| 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@xxxxxxx> |
| References: | <1180715974.10796.46.camel@localhost> <20070604001632.GA86004887@xxxxxxx> <1182291751.5289.9.camel@localhost> <20070619234248.GT86004887@xxxxxxx> |
| Sender: | xfs-bounce@xxxxxxxxxxx |
| User-agent: | Mozilla-Thunderbird 2.0.0.4 (X11/20070618) |
David Chinner wrote: Do you mind that is it ok to depend on shell/awk/perl? I'll do it in C looping through the perag array.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. -- Rubén Porras LinWorks GmbH |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH 0/6][TAKE5] fallocate system call, Andrew Morton |
|---|---|
| Next by Date: | Re: [PATCH] Implement ioctl to mark AGs as "don't use/use", Ruben Porras |
| Previous by Thread: | Re: XFS shrink (step 0), David Chinner |
| Next by Thread: | Re: XFS shrink (step 0), David Chinner |
| Indexes: | [Date] [Thread] [Top] [All Lists] |