[PATCH] Fix wrong flag ASSERT in xfs_attr_shortform_getvalue
Ben Myers
bpm at sgi.com
Fri Aug 30 15:21:06 CDT 2013
On Fri, Aug 23, 2013 at 04:17:07PM -0400, Eric Sandeen wrote:
> On Aug 23, 2013, at 3:11 PM, Ben Myers <bpm at sgi.com> wrote:
>
> > Hey Eric,
> >
> > On Fri, Mar 30, 2012 at 11:24:11AM -0500, Eric Sandeen wrote:
> >> This ASSERT is testing an if_flags flag value against
> >> a di_aformat enum value. di_aformat is never assigned
> >> XFS_IFINLINE.
> >>
> >> This happens to work for now, because XFS_IFINLINE has
> >> the same value as XFS_DINODE_FMT_LOCAL, and that's tested
> >> just before we call this function.
> >>
> >> However, I think the intention is to assert that we have
> >> read in the data, i.e. XFS_IFINLINE on if_flags, before
> >> we use if_data. This is done in other places through the
> >> code as well.
> >>
> >> Signed-off-by: Eric Sandeen <sandeen at redhat.com>
> >
> > Looks like this one fell through the cracks. You still interested in merging
> > it?
> >
> Yep - it's fallen out of my brain by mow but if it was correct then I think it's correct now...
Applied.
More information about the xfs
mailing list