@@ -248,7 +248,7 @@ main(int argc, char **argv)
progname, argname);
exit(1);
} else if (S_ISDIR(sb.st_mode) || S_ISREG(sb.st_mode)) {
- if (!platform_test_xfs_path(argname)) {
+ if (!test_xfs_path(argname)) {
fprintf(stderr, _(
"%s: cannot defragment: %s: Not XFS\n"),
progname, argname);
@@ -65,7 +65,7 @@ static __inline__ int platform_test_xfs_fd(int fd)
return test_xfs_fd(fd);
}
-static __inline__ int platform_test_xfs_path(const char *path)
+static __inline__ int test_xfs_path(const char *path)
{
struct statfs statfsbuf;
struct stat statbuf;
@@ -79,6 +79,11 @@ static __inline__ int platform_test_xfs_path(const char *path)
return (statfsbuf.f_type == 0x58465342); /* XFSB */
}
+static __inline__ int platform_test_xfs_path(const char *path)
+{
+ return test_xfs_path(path);
+}
+
static __inline__ int platform_fstatfs(int fd, struct statfs *buf)
{
return fstatfs(fd, buf);
@@ -161,7 +161,7 @@ fs_table_insert(
goto out_nodev;
}
- if (!platform_test_xfs_path(dir))
+ if (!test_xfs_path(dir))
flags |= FS_FOREIGN;
/*