commit | 9cdafd8a769b7c3a54e474393fb69d1fc2c42185 | [log] [tgz] |
---|---|---|
author | Darrick J. Wong <darrick.wong@oracle.com> | Mon Oct 03 09:11:15 2016 -0700 |
committer | Darrick J. Wong <darrick.wong@oracle.com> | Mon Oct 03 09:11:15 2016 -0700 |
tree | 9995f2fb2595fbf2bf4f2d5e1387a8edb8b4603c | |
parent | 71be6b4942dd64bc17728f82f787be98fd8afed7 [diff] |
xfs: return an error when an inline directory is too small If the size of an inline directory is so small that it doesn't even cover the required header size, return an error to userspace instead of ASSERTing and returning 0 like everything's ok. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reported-by: Jan Kara <jack@suse.cz> Reviewed-by: Brian Foster <bfoster@redhat.com> Reviewed-by: Christoph Hellwig <hch@lst.de>