Deleted Added
full compact
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

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

17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 *
19 * CDDL HEADER END
20 */
21
22/*
23 * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
24 * Copyright 2010 Nexenta Systems, Inc. All rights reserved.
25 * Copyright (c) 2011 by Delphix. All rights reserved.
26 */
27
28#include <ctype.h>
29#include <errno.h>
30#include <libintl.h>
31#include <math.h>
32#include <stdio.h>
33#include <stdlib.h>

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

2034 if (literal)
2035 (void) snprintf(propbuf, proplen, "%llu",
2036 (u_longlong_t)val);
2037 else
2038 zfs_nicenum(val, propbuf, proplen);
2039 }
2040 break;
2041
2042 case ZFS_PROP_REFRATIO:
2043 case ZFS_PROP_COMPRESSRATIO:
2044 if (get_numeric_property(zhp, prop, src, &source, &val) != 0)
2045 return (-1);
2046 (void) snprintf(propbuf, proplen, "%llu.%02llux",
2047 (u_longlong_t)(val / 100),
2048 (u_longlong_t)(val % 100));
2049 break;
2050

--- 2273 unchanged lines hidden ---