Aarghhh. I'd hate it if it worked like that. Gives me a DOS feeling.
How about adjusting the stats for the filesystem at the beginning of
the "walk the list of blocks, and free them as you go". That would
give the "df" accurate results, and allow the unlink to work in the
background.
pseudo-pseudo code:
do_unlink ...
inode->sb->free += inode->blocks
if (fork ()) return;
for (.... )
free_block (i);
Roger.
-- Actor asks a collegue: "To what do you owe your success in acting?" Answer: "Honesty. Once you've learned how to fake that, you've got it made." -------- Custom Linux device drivers for sale! Call for a quote. ---------- Email: R.E.Wolff@BitWizard.nl || Tel: +31-15-2137555 || FAX: +31-15-2138217- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu