[Ocfs2-devel] [PATCH 1/1] OCFS2: anti stale inode for nfs (V3)

Joel Becker Joel.Becker at oracle.com
Wed Feb 18 09:43:50 PST 2009


On Wed, Feb 18, 2009 at 04:30:13PM +0800, Wengang Wang wrote:
>>> +	if (suballoc_slot)
>>> +		*suballoc_slot = le16_to_cpu(inode_fe->i_suballoc_slot);
>> 	Probably want to validate that suballoc_slot is within the range
>> of valid slot numbers.  Just in case.
> in what case could the suballoc_slot be out of range?

	Filesystem corruption or a bad NFS handle of some sort.  It's
easy to check that i_suballoc_slot is either OCFS2_INVALID_SLOT or
within osb->max_slots.

Joel

-- 

Dort wo man Bücher verbrennt, verbrennt man am Ende auch Mensch.
(Wherever they burn books, they will also end up burning people.)
	- Heinrich Heine

Joel Becker
Principal Software Developer
Oracle
E-mail: joel.becker at oracle.com
Phone: (650) 506-8127



More information about the Ocfs2-devel mailing list