]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_growfs: ensure target path is an active xfs mountpoint
authorBill O'Donnell <billodo@redhat.com>
Wed, 21 Jun 2017 19:40:35 +0000 (14:40 -0500)
committerEric Sandeen <sandeen@redhat.com>
Wed, 21 Jun 2017 19:40:35 +0000 (14:40 -0500)
commitb97815a0321072a7154ecab63e297af84066fc78
treeef03c4fe3a5d3162bdc49c6e566a1b5b31e764d8
parente195146db095b7447b61f25fadfbde15c07b36aa
xfs_growfs: ensure target path is an active xfs mountpoint

xfs_growfs manpage clearly states that the target path must be
an active xfs mountpoint.

Current behavior allows xfs_growfs to proceed if the target path
resides anywhere on a mounted xfs filesystem. This could lead to
unexpected results. Unless the target path is an active xfs
mountpoint, reject it. Create a new fs table lookup function which
matches only active xfs mount points, not any file residing within
those mountpoints.

Signed-off-by: Bill O'Donnell <billodo@redhat.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
growfs/xfs_growfs.c
include/path.h
libxcmd/paths.c