Skip to content

xfs: cleanup XFS_IOC_SETXATTR behaviour

Dave Chinner linux-xfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2xfs: project id inheritance is a directory only flagfs/xfs/xfs_inode.c fs/xfs/xfs_ioctl.c+4 -41 reply
2/2xfs: only set extent size hint when askedfs/xfs/xfs_ioctl.c+14 -24 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchBrian Foster
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] xfs: cleanup XFS_IOC_SETXATTR behaviour

Hi folks,

A while back Iustin Pop sent a patch to fix a problem with being unable to set extent size hint values on directories. That patch - along with new xfstests functionality to always check the scratch device after a test - has pointed out that we allow certain directory only inode flags to be set on other types of inodes (e.g. regular files). It also pointed out that we could set extent size hints on inodes that don't have extent size hint flags set.

This patchset does not attempt to fix the original problem, not add any new validation of what is passed from userspace. Instead, it simply ensures that what we end up with on disk is valid. That is, directory only flags are only set on directory inodes, and extent size hints are set if the inode flags are set, otherwise it is cleared. Hence we don't end up with "invalid" state on disk, and so xfstests doesn't get upset with directory only flags being set on non directory inodes.

Further followups will be needed to address the original issue of changing extent size hints on directories and handling invalid flag/value combinations from userspace. I have not attempted to solve that problem here because it could have impact on userspace application behaviour and that's a different issue to ensuring we end up with valid inode state on disk.

Thoughts, comments, flames?

Cheers,

Dave.

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs