geom.c (cbd59a4f658ff44ebe2aab164cc6f830f8dfcd62) | geom.c (35daa28f3031346789031e54a5ab494452634cfc) |
---|---|
1/*- 2 * Copyright (c) 2004-2009 Pawel Jakub Dawidek <pjd@FreeBSD.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 758 unchanged lines hidden (view full) --- 767 char buf[5]; 768 769 printf("Name: %s\n", pp->lg_name); 770 humanize_number(buf, sizeof(buf), (int64_t)pp->lg_mediasize, "", 771 HN_AUTOSCALE, HN_B | HN_NOSPACE | HN_DECIMAL); 772 printf("%sMediasize: %jd (%s)\n", prefix, (intmax_t)pp->lg_mediasize, 773 buf); 774 printf("%sSectorsize: %u\n", prefix, pp->lg_sectorsize); | 1/*- 2 * Copyright (c) 2004-2009 Pawel Jakub Dawidek <pjd@FreeBSD.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 758 unchanged lines hidden (view full) --- 767 char buf[5]; 768 769 printf("Name: %s\n", pp->lg_name); 770 humanize_number(buf, sizeof(buf), (int64_t)pp->lg_mediasize, "", 771 HN_AUTOSCALE, HN_B | HN_NOSPACE | HN_DECIMAL); 772 printf("%sMediasize: %jd (%s)\n", prefix, (intmax_t)pp->lg_mediasize, 773 buf); 774 printf("%sSectorsize: %u\n", prefix, pp->lg_sectorsize); |
775 if (pp->lg_stripesize > 0) { 776 printf("%sStripesize: %ju\n", prefix, pp->lg_stripesize); 777 printf("%sStripeoffset: %ju\n", prefix, pp->lg_stripeoffset); 778 } |
|
775 printf("%sMode: %s\n", prefix, pp->lg_mode); 776 LIST_FOREACH(conf, &pp->lg_config, lg_config) { 777 printf("%s%s: %s\n", prefix, conf->lg_name, conf->lg_val); 778 } 779} 780 781static void 782list_one_consumer(struct gconsumer *cp, const char *prefix) --- 8 unchanged lines hidden (view full) --- 791 char buf[5]; 792 793 printf("Name: %s\n", pp->lg_name); 794 humanize_number(buf, sizeof(buf), (int64_t)pp->lg_mediasize, "", 795 HN_AUTOSCALE, HN_B | HN_NOSPACE | HN_DECIMAL); 796 printf("%sMediasize: %jd (%s)\n", prefix, 797 (intmax_t)pp->lg_mediasize, buf); 798 printf("%sSectorsize: %u\n", prefix, pp->lg_sectorsize); | 779 printf("%sMode: %s\n", prefix, pp->lg_mode); 780 LIST_FOREACH(conf, &pp->lg_config, lg_config) { 781 printf("%s%s: %s\n", prefix, conf->lg_name, conf->lg_val); 782 } 783} 784 785static void 786list_one_consumer(struct gconsumer *cp, const char *prefix) --- 8 unchanged lines hidden (view full) --- 795 char buf[5]; 796 797 printf("Name: %s\n", pp->lg_name); 798 humanize_number(buf, sizeof(buf), (int64_t)pp->lg_mediasize, "", 799 HN_AUTOSCALE, HN_B | HN_NOSPACE | HN_DECIMAL); 800 printf("%sMediasize: %jd (%s)\n", prefix, 801 (intmax_t)pp->lg_mediasize, buf); 802 printf("%sSectorsize: %u\n", prefix, pp->lg_sectorsize); |
803 if (pp->lg_stripesize > 0) { 804 printf("%sStripesize: %ju\n", prefix, pp->lg_stripesize); 805 printf("%sStripeoffset: %ju\n", prefix, pp->lg_stripeoffset); 806 } |
|
799 printf("%sMode: %s\n", prefix, cp->lg_mode); 800 } 801 LIST_FOREACH(conf, &cp->lg_config, lg_config) { 802 printf("%s%s: %s\n", prefix, conf->lg_name, conf->lg_val); 803 } 804} 805 806static void --- 346 unchanged lines hidden --- | 807 printf("%sMode: %s\n", prefix, cp->lg_mode); 808 } 809 LIST_FOREACH(conf, &cp->lg_config, lg_config) { 810 printf("%s%s: %s\n", prefix, conf->lg_name, conf->lg_val); 811 } 812} 813 814static void --- 346 unchanged lines hidden --- |