char * getparent(char *fname);
int fsrprintf(const char *fmt, ...);
int read_fd_bmap(int, struct xfs_bstat *, int *);
-int cmp(const void *, const void *);
static void tmp_init(char *mnt);
static char * tmp_next(char *mnt);
static void tmp_close(char *mnt);
}
}
+/*
+ * To compare bstat structs for qsort.
+ */
+static int
+cmp(const void *s1, const void *s2)
+{
+ return( ((struct xfs_bulkstat *)s2)->bs_extents -
+ ((struct xfs_bulkstat *)s1)->bs_extents);
+}
+
/*
* fsrfs -- reorganize a file system
*/
return 0;
}
-/*
- * To compare bstat structs for qsort.
- */
-int
-cmp(const void *s1, const void *s2)
-{
- return( ((struct xfs_bulkstat *)s2)->bs_extents -
- ((struct xfs_bulkstat *)s1)->bs_extents);
-}
-
/*
* reorganize by directory hierarchy.
* Stay in dev (a restriction based on structure of this program -- either