Re: [PATCH] Validate extent details only when read from the disk

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Feb 09, 2009 at 11:31:46AM +0100, Thiemo Nagel wrote:
> Aneesh Kumar K.V wrote:
> > Make sure we validate extent details only when read from the disk.
> >
> > @@ -602,15 +607,13 @@ struct ext4_ext_path *
> >  ext4_ext_find_extent(struct inode *inode, ext4_lblk_t block,
> >  					struct ext4_ext_path *path)
> >  {
> > +	int need_to_validate = 0;
> >  	struct ext4_extent_header *eh;
> >  	struct buffer_head *bh;
> >  	short int depth, i, ppos = 0, alloc = 0;
> >  
> >  	eh = ext_inode_hdr(inode);
> >  	depth = ext_depth(inode);
> > -	if (ext4_ext_check(inode, eh, depth))
> > -		return ERR_PTR(-EIO);
> > -
> 

I am doing the check in ext4_iget while reading the inode from disk.

-aneesh
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Reiser Filesystem Development]     [Ceph FS]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite National Park]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]     [Linux Media]

  Powered by Linux