search for: ext2_get_inod

Displaying 3 results from an estimated 3 matches for "ext2_get_inod".

Did you mean: ext2_get_inode
2012 Aug 02
2
[PATCH] add additional checks to ext2 loader
...Frediano Ziglio <frediano.ziglio at citrix.com> --- core/fs/ext2/ext2.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/core/fs/ext2/ext2.c b/core/fs/ext2/ext2.c index bddde8d..8f0f2a4 100644 --- a/core/fs/ext2/ext2.c +++ b/core/fs/ext2/ext2.c @@ -139,6 +139,8 @@ ext2_get_inode(struct fs_info *fs, int inr) block_off = inode_offset % EXT2_INODES_PER_BLOCK(fs); data = get_cache(fs->fs_dev, block_num); + if (!data) + return NULL; return (const struct ext2_inode *) (data + block_off * EXT2_SB(fs)->s_inode_size); @@ -164,7 +166,7 @@ static struct...
2009 Sep 22
2
rescan usb hd
...page write due to I/O error on sdc1 EXT2-fs error (device sdc1): ext2_readdir: bad page in #2 scsi 6:0:0:0: rejecting I/O to dead device scsi 6:0:0:0: rejecting I/O to dead device Buffer I/O error on device sdc1, logical block 0 lost page write due to I/O error on sdc1 EXT2-fs error (device sdc1): ext2_get_inode: unable to read inode block - inode=2, block=1027 scsi 6:0:0:0: rejecting I/O to dead device scsi 6:0:0:0: rejecting I/O to dead device Buffer I/O error on device sdc1, logical block 0 lost page write due to I/O error on sdc1 EXT2-fs error (device sdc1): ext2_readdir: bad page in #2 If i unmount...
2013 Mar 02
0
[GIT-PULL] ext4 inline data support
...clude "disk.h" #include "fs.h" #include "ext2_fs.h" @@ -66,7 +67,6 @@ static inline bool ext2_match_entry(const char *name, size_t len, return !memcmp(name, de->d_name, len); } - /* * p is at least 6 bytes before the end of page */ @@ -144,7 +144,7 @@ ext2_get_inode(struct fs_info *fs, int inr) (data + block_off * EXT2_SB(fs)->s_inode_size); } -static void fill_inode(struct inode *inode, const struct ext2_inode *e_inode) +static void fill_inode(struct inode *inode, const struct ext2_inode *e_inode, uint32_t inr) { inode->mode = IFTODT(e_in...