merge irix dmapi test changes
[xfstests-dev.git] / dmapi / src / suite1 / cmd / print_fshandle.c
index 5bfab99678a1aed45f338f6a7382282f49ed785f..19773846410765ca607af9526236d9ca7c67bd9d 100644 (file)
@@ -35,8 +35,8 @@
 */
 
 #include <sys/types.h>
-#ifdef linux
-#else
+#include <string.h>
+#ifdef __sgi
 #include <sys/syssgi.h>
 #include <sys/uuid.h>
 #include <sys/fs/xfs_fsops.h>
@@ -69,9 +69,11 @@ main(
        int             argc,
        char            **argv)
 {
-/*     xfs_fsop_geom_t geom;*/
+#ifdef __sgi
+       xfs_fsop_geom_t geom;
        char            *uuid_str;
        u_int           status;
+#endif
        char            *name;
        int             fd;
        void            *fshanp;
@@ -96,14 +98,15 @@ main(
                exit(1);
        }
 
-/*
+#ifdef __sgi
        syssgi(SGI_XFS_FSOPERATIONS, fd, XFS_FS_GEOMETRY, NULL, &geom);
 
        uuid_to_string(&geom.uuid, &uuid_str, &status);
 
        fprintf(stdout, "fshandle %s, uuid %s, %s\n",
                buffer, uuid_str, argv[1]);
-*/
+#endif
        fprintf(stdout, "fshandle %s, %s\n",
                buffer, argv[1]);
+       exit(0);
 }