+static int
+S_xswusage(int l2, void *p)
+{
+ struct xsw_usage *xsu = (struct xsw_usage *)p;
+
+ if(l2 != sizeof (*xsu))
+ err(1, "S_xswusage %d != %d", l2, sizeof *xsu);
+
+ fprintf(stdout,
+ "total = %.2fM used = %.2fM free = %.2fM %s",
+ ((double) xsu->xsu_total) / (1024.0 * 1024.0),
+ ((double) xsu->xsu_used) / (1024.0 * 1024.0),
+ ((double) xsu->xsu_avail) / (1024.0 * 1024.0),
+ xsu->xsu_encrypted ? "(encrypted)" : "");
+ return 0;
+}
+