summaryrefslogtreecommitdiffstats
path: root/sys/geom/vinum/geom_vinum_subr.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/geom/vinum/geom_vinum_subr.c')
-rw-r--r--sys/geom/vinum/geom_vinum_subr.c35
1 files changed, 0 insertions, 35 deletions
diff --git a/sys/geom/vinum/geom_vinum_subr.c b/sys/geom/vinum/geom_vinum_subr.c
index 1821cfd..0df59c3 100644
--- a/sys/geom/vinum/geom_vinum_subr.c
+++ b/sys/geom/vinum/geom_vinum_subr.c
@@ -235,41 +235,6 @@ gv_format_config(struct gv_softc *sc, struct sbuf *sb, int ondisk, char *prefix)
return;
}
-/*
- * Take a size in bytes and return a pointer to a string which represents the
- * size best. If lj is != 0, return left justified, otherwise in a fixed 10
- * character field suitable for columnar printing.
- *
- * Note this uses a static string: it's only intended to be used immediately
- * for printing.
- */
-const char *
-gv_roughlength(off_t bytes, int lj)
-{
- static char desc[16];
-
- /* Gigabytes. */
- if (bytes > (off_t)MEGABYTE * 10000)
- snprintf(desc, sizeof(desc), lj ? "%jd GB" : "%10jd GB",
- bytes / GIGABYTE);
-
- /* Megabytes. */
- else if (bytes > KILOBYTE * 10000)
- snprintf(desc, sizeof(desc), lj ? "%jd MB" : "%10jd MB",
- bytes / MEGABYTE);
-
- /* Kilobytes. */
- else if (bytes > 10000)
- snprintf(desc, sizeof(desc), lj ? "%jd kB" : "%10jd kB",
- bytes / KILOBYTE);
-
- /* Bytes. */
- else
- snprintf(desc, sizeof(desc), lj ? "%jd B" : "%10jd B", bytes);
-
- return (desc);
-}
-
int
gv_sd_to_plex(struct gv_plex *p, struct gv_sd *s, int check)
{
OpenPOWER on IntegriCloud