summaryrefslogtreecommitdiffstats
path: root/src/ext2grp.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2008-07-14 11:43:39 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2008-07-14 11:43:39 +0200
commit2bc44055cf29ba82c7907773ece0eb13dfc09955 (patch)
tree8515fc9161e5be7b0b30d1591ee811d18a80ae88 /src/ext2grp.c
parent6d66339e65c1b27a5039c11b0fb537b063f5c855 (diff)
Distinguish ext4 from ext3 filesystem
Diffstat (limited to 'src/ext2grp.c')
-rw-r--r--src/ext2grp.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/ext2grp.c b/src/ext2grp.c
index c3daa78..5af5a22 100644
--- a/src/ext2grp.c
+++ b/src/ext2grp.c
@@ -47,10 +47,11 @@ unsigned int ext2_fix_group(alloc_data_t *list_search_space, disk_t *disk, parti
unsigned char *buffer;
unsigned int blocksize;
if(partition->upart_type!=UP_EXT2 &&
- partition->upart_type!=UP_EXT3)
+ partition->upart_type!=UP_EXT3 &&
+ partition->upart_type!=UP_EXT4)
{
- log_error("Not a valid ext2/ext3 filesystem");
- display_message("Not a valid ext2/ext3 filesystem");
+ log_error("Not a valid ext2/ext3/ext4 filesystem");
+ display_message("Not a valid ext2/ext3/ext4 filesystem");
free_search_space(list_search_space);
return 0;
}
@@ -84,10 +85,11 @@ unsigned int ext2_fix_inode(alloc_data_t *list_search_space, disk_t *disk, parti
unsigned char *buffer;
unsigned int blocksize;
if(partition->upart_type!=UP_EXT2 &&
- partition->upart_type!=UP_EXT3)
+ partition->upart_type!=UP_EXT3 &&
+ partition->upart_type!=UP_EXT4)
{
- log_error("Not a valid ext2/ext3 filesystem");
- display_message("Not a valid ext2/ext3 filesystem");
+ log_error("Not a valid ext2/ext3/ext4 filesystem");
+ display_message("Not a valid ext2/ext3/ext4 filesystem");
free_search_space(list_search_space);
return 0;
}