libzfs_dataset.c (219089) | libzfs_dataset.c (223623) |
---|---|
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. | 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. |
|
25 */ 26 27#include <ctype.h> 28#include <errno.h> 29#include <libintl.h> 30#include <math.h> 31#include <stdio.h> 32#include <stdlib.h> --- 2000 unchanged lines hidden (view full) --- 2033 if (literal) 2034 (void) snprintf(propbuf, proplen, "%llu", 2035 (u_longlong_t)val); 2036 else 2037 zfs_nicenum(val, propbuf, proplen); 2038 } 2039 break; 2040 | 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: |
|
2041 case ZFS_PROP_COMPRESSRATIO: 2042 if (get_numeric_property(zhp, prop, src, &source, &val) != 0) 2043 return (-1); 2044 (void) snprintf(propbuf, proplen, "%llu.%02llux", 2045 (u_longlong_t)(val / 100), 2046 (u_longlong_t)(val % 100)); 2047 break; 2048 --- 2273 unchanged lines hidden --- | 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 --- |