On Tue, Aug 26, 2008 at 03:27:43PM -0600, Andreas Dilger wrote:Ah, I see. So the main thing that you are trying to achieve with the patch is avoid the non-zero exit from fsck, right? I guess I'm really not that happy with letting the filesystem getting marked as "valid" if the user refuses to fix the free blocks/inode count summary when the -n flag isn't getting set. And technically, if the summary statistics are wrong, the filesystem is not actually valid, which is what an exit code of 4, right? It seems like the much more "correct" solution, which would actually be more code, but would also be useful when a user wants to check a filesystem without actually changing *anything*, including running the journal, would be to create an I/O manager which reads in the journal into memory, and creates a "override map" data structure such that when e2fsck tries to read from a block which is in the journal, that the (read-only) I/O manager read the block in the journal instead of from the disk. (Of course it will need to respect the revoke records, too!) Once we have this I/O manager, I think e2fsck should use it by default with the -n option, so that we can correctly check the filesystem, and **not** modify the device at all. This would also give you the exit status of 0 for quiscent filesystems, as you would wish. Debugfs could also have an option to use this I/O manager to read in the journal. - Ted -- To unsubscribe from this list: send the line "unsubscribe linux-ext4" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
| Alex Samad | page swap allocation error/failure in 2.6.25 |
| Bart Van Assche | Re: Integration of SCST in the mainstream Linux kernel |
| Andrea Arcangeli | [PATCH 06 of 11] rwsem contended |
| Chuck Ebbert | Why do so many machines need "noapic"? |
git: | |
| Andy Parkins | svn:externals using git submodules |
| Elijah Newren | Trying to use git-filter-branch to compress history by removing large, obsolete bi... |
| Marcus Griep | [PATCH] git-svn: Make it scream by minimizing temp files |
| Tommi Virtanen | [PATCH] "git shell" won't work, need "git-shell" |
| Marcos Laufer | dmesg IBM x3650 OpenBSD 4.3 |
| Theo de Raadt | Re: Chatting with developers? Is it soo 1996? |
| Ted Unangst | Re: MAXDSIZ 1GB memory limit for process |
| Richard Stallman | Real men don't attack straw men |
| Denys Fedoryshchenko | Re: thousands of classes, e1000 TX unit hang |
| Suresh Siddha | Re: Kernel oops with 2.6.26, padlock and ipsec: probably problem with fpu state ch... |
| Simon Horman | Re: [PATCH] sendfile() and UDP socket |
| Jeff Garzik | Re: [PATCH] sky2: jumbo frame regression fix |
