Deleted Added
full compact
zfs_prop.c (246586) zfs_prop.c (247585)
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

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

15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 *
19 * CDDL HEADER END
20 */
21/*
22 * Copyright (c) 2005, 2010, Oracle and/or its affiliates. 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

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

15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 *
19 * CDDL HEADER END
20 */
21/*
22 * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
23 * Copyright (c) 2011 by Delphix. All rights reserved.
23 * Copyright (c) 2012 by Delphix. All rights reserved.
24 * Copyright (c) 2013 by Saso Kiselkov. All rights reserved.
25 */
26
27/* Portions Copyright 2010 Robert Milkowski */
28
29#include <sys/zio.h>
30#include <sys/spa.h>
31#include <sys/u8_textprep.h>

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

345 "USEDCHILD");
346 zprop_register_number(ZFS_PROP_USEDREFRESERV, "usedbyrefreservation", 0,
347 PROP_READONLY,
348 ZFS_TYPE_FILESYSTEM | ZFS_TYPE_VOLUME, "<size>", "USEDREFRESERV");
349 zprop_register_number(ZFS_PROP_USERREFS, "userrefs", 0, PROP_READONLY,
350 ZFS_TYPE_SNAPSHOT, "<count>", "USERREFS");
351 zprop_register_number(ZFS_PROP_WRITTEN, "written", 0, PROP_READONLY,
352 ZFS_TYPE_DATASET, "<size>", "WRITTEN");
24 * Copyright (c) 2013 by Saso Kiselkov. All rights reserved.
25 */
26
27/* Portions Copyright 2010 Robert Milkowski */
28
29#include <sys/zio.h>
30#include <sys/spa.h>
31#include <sys/u8_textprep.h>

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

345 "USEDCHILD");
346 zprop_register_number(ZFS_PROP_USEDREFRESERV, "usedbyrefreservation", 0,
347 PROP_READONLY,
348 ZFS_TYPE_FILESYSTEM | ZFS_TYPE_VOLUME, "<size>", "USEDREFRESERV");
349 zprop_register_number(ZFS_PROP_USERREFS, "userrefs", 0, PROP_READONLY,
350 ZFS_TYPE_SNAPSHOT, "<count>", "USERREFS");
351 zprop_register_number(ZFS_PROP_WRITTEN, "written", 0, PROP_READONLY,
352 ZFS_TYPE_DATASET, "<size>", "WRITTEN");
353 zprop_register_number(ZFS_PROP_LOGICALUSED, "logicalused", 0,
354 PROP_READONLY, ZFS_TYPE_DATASET, "<size>", "LUSED");
355 zprop_register_number(ZFS_PROP_LOGICALREFERENCED, "logicalreferenced",
356 0, PROP_READONLY, ZFS_TYPE_DATASET, "<size>", "LREFER");
353
354 /* default number properties */
355 zprop_register_number(ZFS_PROP_QUOTA, "quota", 0, PROP_DEFAULT,
356 ZFS_TYPE_FILESYSTEM, "<size> | none", "QUOTA");
357 zprop_register_number(ZFS_PROP_RESERVATION, "reservation", 0,
358 PROP_DEFAULT, ZFS_TYPE_FILESYSTEM | ZFS_TYPE_VOLUME,
359 "<size> | none", "RESERV");
360 zprop_register_number(ZFS_PROP_VOLSIZE, "volsize", 0, PROP_DEFAULT,

--- 262 unchanged lines hidden ---
357
358 /* default number properties */
359 zprop_register_number(ZFS_PROP_QUOTA, "quota", 0, PROP_DEFAULT,
360 ZFS_TYPE_FILESYSTEM, "<size> | none", "QUOTA");
361 zprop_register_number(ZFS_PROP_RESERVATION, "reservation", 0,
362 PROP_DEFAULT, ZFS_TYPE_FILESYSTEM | ZFS_TYPE_VOLUME,
363 "<size> | none", "RESERV");
364 zprop_register_number(ZFS_PROP_VOLSIZE, "volsize", 0, PROP_DEFAULT,

--- 262 unchanged lines hidden ---