]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
libxfs/linux.c: Replace use of ustat by stat
authorFelix Janda <felix.janda@posteo.de>
Thu, 8 Sep 2016 00:22:28 +0000 (10:22 +1000)
committerDave Chinner <david@fromorbit.com>
Thu, 8 Sep 2016 00:22:28 +0000 (10:22 +1000)
commit4e7a824f6b34dbe0dd2e2a3870891130b937f327
tree082478efc250d296e1ec4350bdb18f7983d03615
parent4222d000ed3b198976db7e5acdf2bdd350298ebd
libxfs/linux.c: Replace use of ustat by stat

ustat has been used to check whether a device file is mounted.
The function is deprecated and not supported by uclibc and musl.
Now do the check using the *mntent functions.

Based on patch by Natanael Copa <ncopa@alpinelinux.org>.

Signed-off-by: Felix Janda <felix.janda@posteo.de>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
libxfs/linux.c