Secure Deletion and Trash-Bin Support for Ext4
PATCH 2/5 Secure Deletion and Trash-Bin Support for Ext4
Trash-Bin Functionality for the ext2 filesystem:
Signed-off-by Harry Papaxenopoulos <[email protected]>
Signed-off-by Nikolai Joukov <[email protected]>
Signed-off-by Erez Zadok <[email protected]>
src/linux-2.6.20-rc6-trashbin/fs/ext2/super.c +5 -0
@@ -29,6 +29,7 @@#include <linux/vfs.h> #include <linux/seq_file.h> #include <linux/mount.h> +#include <linux/trashbin.h> #include <asm/uaccess.h> #include "ext2.h" #include "xattr.h"
@@ -934,6 +935,10 @@ static int ext2_fill_super(struct super_if (EXT2_HAS_COMPAT_FEATURE (sb,EXT3_FEATURE_COMPAT_HAS_JOURNAL ))ext2_warning (sb, __FUNCTION__,"mounting ext3 filesystem as ext2" ); +#ifdef CONFIG_EXT2_FS_TRASHBIN +if ((sb->s_flags &MNT_TRASHBIN ) &&vfs_create_trash_bin (sb)) + goto failed_mount3; +#endif ext2_setup_super (sb, es, sb->s_flags &MS_RDONLY );return 0 ;
src/linux-2.6.20-rc6-trashbin/fs/ext2/namei.c +39 -2
64 lines not on this page · raw message
src/linux-2.6.20-rc6-trashbin/fs/Kconfig +9 -0
@@ -76,6 +76,15 @@ config FS_XIP depends on EXT2_FS_XIP default y +config EXT2_FS_TRASHBIN + bool "Ext2 trashbin functionality" + depends on TRASHBIN + depends on EXT2_FS + help + Trashbin functionality for the ext2 filesystem + + If unsure, say N. + config EXT3_FS tristate "Ext3 journalling file system support" select JBD