Displaying 2 results from an estimated 2 matches for "ext2_pvt_inod".
Did you mean:
ext2_pvt_inode
2012 Aug 02
2
[PATCH] add additional checks to ext2 loader
...turn (const struct ext2_inode *)
(data + block_off * EXT2_SB(fs)->s_inode_size);
@@ -164,7 +166,7 @@ static struct inode *ext2_iget_by_inr(struct fs_info *fs, uint32_t inr)
struct inode *inode;
e_inode = ext2_get_inode(fs, inr);
- if (!(inode = alloc_inode(fs, inr, sizeof(struct ext2_pvt_inode))))
+ if (!e_inode || !(inode = alloc_inode(fs, inr, sizeof(struct ext2_pvt_inode))))
return NULL;
fill_inode(inode, e_inode);
--
1.7.5.4
2013 Mar 02
0
[GIT-PULL] ext4 inline data support
...block, sizeof PVT(inode)->i_block);
+ PVT(inode)->i_ino = inr;
}
static struct inode *ext2_iget_by_inr(struct fs_info *fs, uint32_t inr)
@@ -169,11 +170,32 @@ static struct inode *ext2_iget_by_inr(struct fs_info *fs, uint32_t inr)
if (!(inode = alloc_inode(fs, inr, sizeof(struct ext2_pvt_inode))))
return NULL;
- fill_inode(inode, e_inode);
+ fill_inode(inode, e_inode, inr);
return inode;
}
+static uint32_t ext2_getfssec(struct file *file, char *buf, int sectors,
+ bool *have_more)
+{
+ struct inode *inode = file->inode;
+ const struct ext2_inode *e2_in...