| To: | Steve Lord <lord@xxxxxxx> |
|---|---|
| Subject: | Re: how to free a used ag? |
| From: | Markus Lidel <Markus.Lidel@xxxxxxxxxxxxxxxxx> |
| Date: | Wed, 18 Aug 2004 11:51:20 +0200 |
| Cc: | linux-xfs@xxxxxxxxxxx |
| In-reply-to: | <41222FD4.9060601@xfs.org> |
| References: | <412136CC.5070708@shadowconnect.com> <41222FD4.9060601@xfs.org> |
| Sender: | linux-xfs-bounce@xxxxxxxxxxx |
| User-agent: | Mozilla Thunderbird 0.6 (Windows/20040502) |
Hello, Steve Lord wrote: Markus Lidel wrote:could someone help me with freeing a used ag?Make sure you traverse all the inodes - there will probably be inodes Thanks you very much for the advice... But do you think it's better to work on the on-disk structure, or do you think it's better to work with the in-core inodes? 2. how could i easily copy the inode to a free space outside the current agi (i thought of setting pag.pagf_freeblks, pag.pagf_flcount, pag.pagf_longest to 0).You need a mechanism to drain all the transactions in progress (look at the freeze code), then flag the per ag structures in some way so that the allocator will not use them. A temporary in memory flag in the per ag headers is probably best. Then start up transactions again. Hmmm, if i work on the in-core structures, do i have to care about transactions too? 3. have i missed something or is there a better way to do it?You might want to try this from user space with some kernel assist rather than doing it all in the kernel. The bulkstat and swap extent calls provide the meat of the tools you need to do this. > Of course, you need sufficient free space to recreate everything > outside those Okay... allocation groups. If you are removing some space from the filesystem, the
Best regards,
Shadow Connect GmbH Carl-Reisch-Weg 12 D-86381 Krumbach Germany Phone: +49 82 82/99 51-0 Fax: +49 82 82/99 51-11 E-Mail: Markus.Lidel@xxxxxxxxxxxxxxxxx URL: http://www.shadowconnect.com
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | errata list available?, James G. Sack (jim) |
|---|---|
| Next by Date: | Re: how to free a used ag?, Steve Lord |
| Previous by Thread: | Re: how to free a used ag?, Steve Lord |
| Next by Thread: | Re: how to free a used ag?, Steve Lord |
| Indexes: | [Date] [Thread] [Top] [All Lists] |