Searched refs:quota (Results 1 - 25 of 63) sorted by relevance

123

/illumos-gate/usr/src/test/zfs-tests/tests/functional/quota/
H A Dquota_006_neg.ksh33 . $STF_SUITE/tests/functional/quota/quota.kshlib
38 # Can't set a quota to less than currently being used by the dataset.
42 # 2) Set a quota on the filesystem that is lower than the space
49 log_assert "Verify cannot set quota lower than the space currently in use"
53 log_must zfs set quota=none $TESTPOOL/$TESTFS
67 log_mustnot zfs set quota=$size $TESTPOOL/$TESTFS
69 log_must zfs set quota=$space_used $TESTPOOL/$TESTFS
71 log_pass "As expected cannot set quota lower than space currently in use"
H A Dquota_005_pos.ksh33 . $STF_SUITE/tests/functional/quota/quota.kshlib
38 # Verify that quota doesn't inherit its value from parent.
41 # 1) Set quota for parents
43 # 3) Verify that the 'quota' for descendent doesnot inherit the value.
54 log_must zfs set quota=$quota_val $fs
59 log_assert "Verify that quota doesnot inherit its value from parent."
66 quota_val=$(get_prop quota $fs)
69 log_must zfs set quota=$quotasize $fs
72 quota_space=$(get_prop quota
[all...]
H A Dquota_001_pos.ksh33 . $STF_SUITE/tests/functional/quota/quota.kshlib
38 # A ZFS file system quota limits the amount of pool space
39 # available to a file system. Apply a quota and verify
43 # 1) Apply quota to ZFS file system
44 # 2) Create a file which is larger than the set quota
45 # 3) Verify that the resulting file size is less than the quota limit
50 log_assert "Verify that file size is limited by the file system quota"
53 # cleanup to be used internally as otherwise quota assertions cannot be
63 # quota whic
[all...]
H A Dquota_003_pos.ksh33 . $STF_SUITE/tests/functional/quota/quota.kshlib
37 # A ZFS file system quota limits the amount of pool space
38 # available to a file system dataset. Apply a quota and verify
44 # 1) Apply quota to ZFS file system dataset
45 # 2) Create a file which is larger than the set quota
46 # 3) Verify that the resulting file size is less than the quota limit
51 log_assert "Verify that file size is limited by the file system quota" \
55 # cleanup to be used internally as otherwise quota assertions cannot be
66 # quota whic
[all...]
H A DMakefile19 TESTDIR = $(ROOTOPTPKG)/tests/functional/quota
30 FILES = quota.cfg \
31 quota.kshlib
H A Dquota_002_pos.ksh33 . $STF_SUITE/tests/functional/quota/quota.kshlib
37 # A zfs file system quota limits the amount of pool space
42 # 1) Apply quota to the ZFS file system
43 # 2) Exceed the quota
51 log_assert "Verify that a file write cannot exceed the file system quota"
54 # cleanup to be used internally as otherwise quota assertions cannot be
69 # Fills the quota & attempts to write another file
H A Dquota_004_pos.ksh33 . $STF_SUITE/tests/functional/quota/quota.kshlib
37 # A zfs file system quota limits the amount of pool space
42 # 1) Apply quota to the ZFS file system dataset
43 # 2) Exceed the quota
51 log_assert "Verify that a file write cannot exceed the file system quota" \
55 # cleanup to be used internally as otherwise quota assertions cannot be
70 # Fills the quota & attempts to write another file
H A Dquota.kshlib31 . $STF_SUITE/tests/functional/quota/quota.cfg
33 # BLOCK_SIZE, QUOTA_VALUE and TOLERANCE set in quota.cfg
37 # Function to fill the quota of a zfs filesystem
47 log_must zfs set quota=$QUOTA_VALUE $FILESYSTEM
64 log_fail "File was created larger than the quota value, aborting!!!"
70 # that has already filled its quota
84 log_note "Creating a file in a FS that has already exceeded its quota"
/illumos-gate/usr/src/test/zfs-tests/tests/functional/refquota/
H A Drefquota_002_pos.ksh37 # quota & refquota
40 # 1. Set value for quota and refquota. Quota less than refquota.
41 # 2. Creating file which should be limited by quota.
42 # 3. Switch the value of quota and refquota.
60 log_must zfs set quota=15M $fs
65 typeset -i used quota
67 quota=$(get_prop quota $fs)
69 ((quota = quota / (102
[all...]
H A Drefquota_003_pos.ksh39 # 1. Setting quota and refquota for parent. refquota < quota
41 # 3. Verify sub-filesystem will only be limited by quota
58 log_must zfs set quota=25M $fs
65 typeset -i used quota refquota
76 quota=$(get_prop quota $fs)
78 ((quota = quota / (1024 * 1024)))
79 if [[ $used -gt $quota ]]; the
[all...]
/illumos-gate/usr/src/uts/common/fs/smbsrv/
H A Dsmb_quota.c37 * A user/group quota entry passed over the wire consists of:
41 * - quota used (uint64_t)
42 * - quota limit (uint64_t)
43 * - quota threahold (uint64_t)
182 * If the query is if type SMB_QUOTA_QUERY_SIDLIST a quota entry
186 * max_quota is the maximum number of quota entries requested from
189 * max quota is calculated as the number of quotas of size
206 * Decode the quota entries into a list_t of smb_quota_t.
207 * SMB_QUOTA_SIZE_NO_SID is the size of a quota entry,
220 smb_quota_t *quota; local
272 smb_quota_t *quota; local
300 smb_quota_t *quota, *next_quota; local
370 smb_quota_query_user_quota(smb_request_t *sr, uid_t uid, smb_quota_t *quota) argument
[all...]
H A Dsmb_fsinfo.c328 SMB_QUOTA_UNLIMITED, /* default quota threshold */
329 SMB_QUOTA_UNLIMITED, /* default quota limit */
368 * If there's no quota entry for the user initiating the request,
371 * If there is a quota entry for the user initiating the request,
374 * caller_units = quota limit / bytes_per_unit
375 * caller_avail = remaining quota / bytes_per_unit
377 * A quota limit of SMB_QUOTA_UNLIMITED means that the user's quota
378 * is specfied as unlimited. A quota limit of 0 means there is no
379 * quota specifie
389 smb_quota_t quota; local
[all...]
/illumos-gate/usr/src/test/zfs-tests/tests/functional/reservation/
H A Dreservation_011_pos.sh44 # 2) Get the current quota setting
46 # 4) Verify that the quota value remains unchanged
51 log_assert "Verify reservation settings do not affect quota settings"
64 fs_quota=`zfs get quota $TESTPOOL/$TESTFS`
68 new_fs_quota=`zfs get quota $TESTPOOL/$TESTFS`
H A Dreservation_014_pos.sh38 # A reservation cannot exceed the quota on a dataset
42 # 2) Set a quota on the filesystem
43 # 3) Attempt to set a reservation larger than the quota. Verify
50 log_assert "Verify cannot set reservation larger than quota"
87 # its quota so only need to explicitly set quotas for
90 # A volumes size is effectively its quota. The maximum
96 log_must zfs set quota=$quota_set_size $obj
108 orig_quota=`get_prop quota $obj`
111 new_quota=`get_prop quota $obj`
119 log_must zfs set quota
[all...]
/illumos-gate/usr/src/lib/smbsrv/libmlsvc/common/
H A Dsmb_quota.c56 * Handling of requests to query and set quota data on a filesystem.
59 * smb_quota_free - delete the quota list created in smb_quota_query
65 * In order to fulfill the quota query requests that can be received
66 * from clients, it is required that the quota data can be provided in
68 * at which quota entry to begin the query.
72 * populated with the file system's user and group quota data, and
89 * An avl tree is (re)populated, if required, whenever a quota request
94 * - a quota set operation has been performed on its file system
97 * the appropriate quota tree must be identified and locked via a call
98 * to smb_quota_tree_lookup(), The quota tre
450 smb_quota_t *quota; local
488 smb_quota_t *quota, *quotal, key; local
554 smb_quota_t *quota, *quotal, key; local
600 smb_quota_t *quota; local
672 smb_quota_t key, *quota; local
993 smb_quota_t *quota, key; local
[all...]
/illumos-gate/usr/src/cmd/nsadmin/
H A Detc-profile.sh48 /usr/sbin/quota
H A Dlogin.csh45 /usr/sbin/quota
/illumos-gate/usr/src/test/zfs-tests/tests/functional/snapshot/
H A Dsnapshot_014_pos.ksh40 # 1. create a dataset and set a quota with 500m
58 log_must zfs set quota=none $TESTPOOL/$TESTCTR/$TESTFS1
65 log_must zfs set quota=$FSQUOTA $TESTPOOL/$TESTCTR/$TESTFS1
71 log_note "Make the quota of filesystem is reached"
/illumos-gate/usr/src/test/zfs-tests/tests/functional/utils_test/
H A Dutils_test_004_pos.ksh40 # 1. Enable a quota on a ZFS file system.
56 log_must zfs set quota=1099511627776 $TESTPOOL/$TESTFS
/illumos-gate/usr/src/cmd/fs.d/ufs/quota/
H A DMakefile25 # cmd/fs.d/ufs/quota/Makefile
28 LIBPROG= quota
36 OBJS= quota.o rquota_xdr.o replica.o
/illumos-gate/usr/src/test/zfs-tests/tests/functional/refreserv/
H A Drefreserv_002_pos.ksh63 # value. Simply setting refreserv == quota can allow enough writes to
102 log_must zfs set quota=25M $ds
109 log_must zfs set quota=none $ds
H A Drefreserv_004_pos.ksh40 # 1. Setting quota and refreservation on parent filesystem.
71 log_must zfs set quota=25M $ds
86 log_must zfs set quota=none $ds
/illumos-gate/usr/src/test/zfs-tests/tests/functional/userquota/
H A Duserquota_007_pos.ksh38 # userquota/groupquota can be set beyond the fs quota
42 # 1. set quota to a fs and set a larger size of userquota and groupquota
49 log_must zfs set quota=none $QFS
54 log_assert "Check set user|group quota to larger than the quota size of a fs"
56 log_must zfs set quota=200m $QFS
68 log_note "set user|group quota at a smaller size than it current usage"
75 log_pass "set user|group quota to larger than quota size of a fs pass as expect"
/illumos-gate/usr/src/ucbcmd/
H A DMakefile118 quota \
150 $(ROOTBIN)/quota := LINKDEST= ../lib/fs/ufs/quota
/illumos-gate/usr/src/cmd/fs.d/ufs/
H A DMakefile38 labelit lockfs ncheck quot quota quotacheck quotaon \

Completed in 111 milliseconds

123