Deleted Added
full compact
libzfs_pool.c (268123) libzfs_pool.c (269118)
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

--- 308 unchanged lines hidden (view full) ---

317 if (literal) {
318 (void) snprintf(buf, len, "%llu",
319 (u_longlong_t)intval);
320 } else {
321 (void) snprintf(buf, len, "%llu%%",
322 (u_longlong_t)intval);
323 }
324 break;
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

--- 308 unchanged lines hidden (view full) ---

317 if (literal) {
318 (void) snprintf(buf, len, "%llu",
319 (u_longlong_t)intval);
320 } else {
321 (void) snprintf(buf, len, "%llu%%",
322 (u_longlong_t)intval);
323 }
324 break;
325 case ZPOOL_PROP_FRAGMENTATION:
326 if (intval == UINT64_MAX) {
327 (void) strlcpy(buf, "-", len);
328 } else {
329 (void) snprintf(buf, len, "%llu%%",
330 (u_longlong_t)intval);
331 }
332 break;
325
326 case ZPOOL_PROP_DEDUPRATIO:
327 (void) snprintf(buf, len, "%llu.%02llux",
328 (u_longlong_t)(intval / 100),
329 (u_longlong_t)(intval % 100));
330 break;
331
332 case ZPOOL_PROP_HEALTH:

--- 3826 unchanged lines hidden ---
333
334 case ZPOOL_PROP_DEDUPRATIO:
335 (void) snprintf(buf, len, "%llu.%02llux",
336 (u_longlong_t)(intval / 100),
337 (u_longlong_t)(intval % 100));
338 break;
339
340 case ZPOOL_PROP_HEALTH:

--- 3826 unchanged lines hidden ---