]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/blobdiff - io/resblks.c
Bunch of portability related changes to xfsprogs. Includes some code to
[thirdparty/xfsprogs-dev.git] / io / resblks.c
index 5191dca1d8f5b92c2c456c0028c224cba8a258e6..07787d09626463042ea83536cdbf97ede90b5301 100644 (file)
@@ -51,12 +51,12 @@ resblks_f(
                        printf(_("non-numeric argument -- %s\n"), argv[1]);
                        return 0;
                }
-               if (ioctl(fdesc, XFS_IOC_SET_RESBLKS, &res) < 0) {
-                       perror("XFS_IOC_SET_RESBLKS");
+               if (xfsctl(fname, fdesc, XFS_IOC_SET_RESBLKS, &res) < 0) {
+                       perror("xfsctl(XFS_IOC_SET_RESBLKS)");
                        return 0;
                }
-       } else if (ioctl(fdesc, XFS_IOC_GET_RESBLKS, &res) < 0) {
-               perror("XFS_IOC_GET_RESBLKS");
+       } else if (xfsctl(fname, fdesc, XFS_IOC_GET_RESBLKS, &res) < 0) {
+               perror("xfsctl(XFS_IOC_GET_RESBLKS)");
                return 0;
        }
        printf(_("reserved blocks = %llu\n"),