squashfs-add-option-to-panic-on-errors.patch removed from -mm tree
The patch titled
Subject: squashfs: add option to panic on errors
has been removed from the -mm tree. Its filename was
squashfs-add-option-to-panic-on-errors.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Vincent Whitchurch <[email protected]>
Subject: squashfs: add option to panic on errors
Add an errors=panic mount option to make squashfs trigger a panic when errors are encountered, similar to several other filesystems. This allows a kernel dump to be saved using which the corruption can be analysed and debugged.
Inspired by a pre-fs_context patch by Anton Eliasson.
---
fs/squashfs/block.c | 5 + fs/squashfs/squashfs_fs_sb.h | 1 fs/squashfs/super.c | 86 +++++++++++++++++++++++++++++++++ 3 files changed, 91 insertions(+), 1 deletion(-)
fs/squashfs/block.c renamed from fs/squashfs/block.c~squashfs-add-option-to-panic-on-errors +4 -1
@@ -226,8 +226,11 @@ out_free_bio:bio_free_pages (bio);bio_put (bio); out: -if (res <0 ) +if (res <0 ) {ERROR ("Failed to read block 0x%llx: %d\n" , index, res); +if (msblk->panic_on_errors) +panic ("squashfs read failed" ); + }return res; }
fs/squashfs/squashfs_fs_sb.h renamed from fs/squashfs/squashfs_fs_sb.h~squashfs-add-option-to-panic-on-errors +1 -0
@@ -65,5 +65,6 @@ struct squashfs_sb_info {unsigned int fragments;int xattr_ids;unsigned int ids; + bool panic_on_errors; };#endif
fs/squashfs/super.c renamed from fs/squashfs/super.c~squashfs-add-option-to-panic-on-errors +86 -0
143 lines not on this page · raw message
_
Patches currently in -mm which might be from [email protected] are