]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
libxcmd: fix mount option parsing to find rt/log devices
authorDarrick J. Wong <darrick.wong@oracle.com>
Fri, 26 Aug 2016 01:17:46 +0000 (11:17 +1000)
committerDave Chinner <david@fromorbit.com>
Fri, 26 Aug 2016 01:17:46 +0000 (11:17 +1000)
commit83d4957b00b2574c416c5f554636ffdf7b28845c
treee736b296f6e341f6b75bbc0395709e7a7a777d65
parenta36549812c9d3a2e9711b431bffe04148c34c53f
libxcmd: fix mount option parsing to find rt/log devices

It turns out that glibc's hasmntopt implementation returns NULL
if the opt parameter ends with an equals ('=').  Therefore, we
cannot directly search for the option 'rtdev='; we must instead
have hasmntopt look for 'rtdev' and look for the trailing equals
sign ourselves.  This fixes xfs_info's reporting of external
log and realtime device paths, and xfs_scrub will need it for
data block scrubbing of realtime extents.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dave Chinner <david@fromorbit.com>
libxcmd/paths.c