]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/blobdiff - scrub/phase1.c
libfrog: convert fsgeom.c functions to negative error codes
[thirdparty/xfsprogs-dev.git] / scrub / phase1.c
index e0382b04501f9e0b6dbfb0182fcbb4dd7abf3807..6125d3245dda7fbf88e228aa38cdea879f815f9e 100644 (file)
@@ -60,7 +60,7 @@ scrub_cleanup(
        if (ctx->datadev)
                disk_close(ctx->datadev);
        fshandle_destroy();
-       error = xfd_close(&ctx->mnt);
+       error = -xfd_close(&ctx->mnt);
        if (error)
                str_liberror(ctx, error, _("closing mountpoint fd"));
        fs_table_destroy();
@@ -84,7 +84,7 @@ phase1_func(
         * CAP_SYS_ADMIN, which we probably need to do anything fancy
         * with the (XFS driver) kernel.
         */
-       error = xfd_open(&ctx->mnt, ctx->mntpoint,
+       error = -xfd_open(&ctx->mnt, ctx->mntpoint,
                        O_RDONLY | O_NOATIME | O_DIRECTORY);
        if (error) {
                if (error == EPERM)