@@ -670,7 +670,7 @@ main(int argc, char **argv)
if (S_ISREG(statbuf.st_mode))
source_is_file = 1;
- if (source_is_file && platform_test_xfs_fd(source_fd)) {
+ if (source_is_file && test_xfs_fd(source_fd)) {
if (fcntl(source_fd, F_SETFL, open_flags | O_DIRECT) < 0) {
do_log(_("%s: Cannot set direct I/O flag on \"%s\".\n"),
progname, source_name);
@@ -869,7 +869,7 @@ main(int argc, char **argv)
progname);
die_perror();
}
- if (platform_test_xfs_fd(target[i].fd)) {
+ if (test_xfs_fd(target[i].fd)) {
if (xfsctl(target[i].name, target[i].fd,
XFS_IOC_DIOINFO, &d) < 0) {
do_log(
@@ -160,7 +160,7 @@ main(int argc, char **argv)
return 1;
}
- if (!platform_test_xfs_fd(ffd)) {
+ if (!test_xfs_fd(ffd)) {
fprintf(stderr, _("%s: specified file "
"[\"%s\"] is not on an XFS filesystem\n"),
progname, fname);
@@ -46,7 +46,7 @@ static __inline__ int xfsctl(const char *path, int fd, int cmd, void *p)
* so return 0 for those
*/
-static __inline__ int platform_test_xfs_fd(int fd)
+static __inline__ int test_xfs_fd(int fd)
{
struct statfs statfsbuf;
struct stat statbuf;
@@ -60,6 +60,11 @@ static __inline__ int platform_test_xfs_fd(int fd)
return (statfsbuf.f_type == 0x58465342); /* XFSB */
}
+static __inline__ int platform_test_xfs_fd(int fd)
+{
+ return test_xfs_fd(fd);
+}
+
static __inline__ int platform_test_xfs_path(const char *path)
{
struct statfs statfsbuf;
@@ -219,7 +219,7 @@ init(
c = openfile(argv[optind], &geometry, flags, mode, &fsp);
if (c < 0)
exit(1);
- if (!platform_test_xfs_fd(c))
+ if (!test_xfs_fd(c))
flags |= IO_FOREIGN;
if (addfile(argv[optind], c, &geometry, flags, &fsp) < 0)
exit(1);
@@ -115,7 +115,7 @@ openfile(
}
}
- if (!geom || !platform_test_xfs_fd(fd))
+ if (!geom || !test_xfs_fd(fd))
return fd;
if (flags & IO_PATH) {
@@ -326,7 +326,7 @@ open_f(
return 0;
}
- if (!platform_test_xfs_fd(fd))
+ if (!test_xfs_fd(fd))
flags |= IO_FOREIGN;
if (addfile(argv[optind], fd, &geometry, flags, &fsp) != 0) {
@@ -93,7 +93,7 @@ init(
c = openfile(argv[optind], &xfd, &fsp);
if (c < 0)
exit(1);
- if (!platform_test_xfs_fd(xfd.fd))
+ if (!test_xfs_fd(xfd.fd))
printf(_("Not an XFS filesystem!\n"));
c = addfile(argv[optind], &xfd, &fsp);
if (c < 0)