Up to [cvs.NetBSD.org] / src / tests / fs / ffs
Request diff between arbitrary revisions
Default branch: MAIN
Current tag: bouyer-quota2
Revision 1.14.2.7 / (download) - annotate - [select for diffs], Fri Feb 11 16:54:03 2011 UTC (13 years, 2 months ago) by bouyer
Branch: bouyer-quota2
Changes since 1.14.2.6: +2 -2
lines
Diff to previous 1.14.2.6 (colored) to branchpoint 1.14 (colored) next main 1.15 (colored)
Add a test which cause the kernel to walk a quota list where all entries are not in the header disk block, and at last 2 of them are in the same non-header disk block.
Revision 1.14.2.6 / (download) - annotate - [select for diffs], Wed Feb 9 20:53:10 2011 UTC (13 years, 2 months ago) by bouyer
Branch: bouyer-quota2
Changes since 1.14.2.5: +2 -1
lines
Diff to previous 1.14.2.5 (colored) to branchpoint 1.14 (colored)
Check that upgrading a R/O to R/W mount will properly enable quota2.
Revision 1.14.2.5 / (download) - annotate - [select for diffs], Mon Feb 7 20:31:46 2011 UTC (13 years, 2 months ago) by bouyer
Branch: bouyer-quota2
Changes since 1.14.2.4: +2 -2
lines
Diff to previous 1.14.2.4 (colored) to branchpoint 1.14 (colored)
Test clearing of quota entries
Revision 1.14.2.4 / (download) - annotate - [select for diffs], Wed Feb 2 19:17:08 2011 UTC (13 years, 2 months ago) by bouyer
Branch: bouyer-quota2
Changes since 1.14.2.3: +7 -3
lines
Diff to previous 1.14.2.3 (colored) to branchpoint 1.14 (colored)
Check that the kernel enforces the quota limits and grace times.
Revision 1.14.2.3 / (download) - annotate - [select for diffs], Sun Jan 30 12:37:34 2011 UTC (13 years, 2 months ago) by bouyer
Branch: bouyer-quota2
Changes since 1.14.2.2: +2 -2
lines
Diff to previous 1.14.2.2 (colored) to branchpoint 1.14 (colored)
Add tests cases for quotactl("set")
Revision 1.14.2.2 / (download) - annotate - [select for diffs], Fri Jan 28 18:38:07 2011 UTC (13 years, 2 months ago) by bouyer
Branch: bouyer-quota2
Changes since 1.14.2.1: +9 -2
lines
Diff to previous 1.14.2.1 (colored) to branchpoint 1.14 (colored)
Add rump versions of quota utilities, to be used by tests. Add a test which figures if we can retrieve quota values from the kernel.
Revision 1.14.2.1 / (download) - annotate - [select for diffs], Thu Jan 20 14:25:04 2011 UTC (13 years, 2 months ago) by bouyer
Branch: bouyer-quota2
Changes since 1.14: +7 -1
lines
Diff to previous 1.14 (colored)
Snapshot of work in progress on a modernised disk quota system: - new quotactl syscall (versionned for backward compat), which takes as parameter a path to a mount point, and a prop_dictionary (in plistref format) describing commands and arguments. For each command, status and data are returned as a prop_dictionary. quota commands features will be added to take advantage of this, exporting quota data or getting quota commands as plists. - new on disk-format storage (all 64bit wide), integrated to metadata for ffs (and playing nicely with wapbl). Quotas are enabled on a ffs filesystem via superblock flags. tunefs(8) can enable or disable quotas. On a quota-enabled filesystem, fsck_ffs(8) will track per-uid/gid block and inode usages, and will check and update quotas in Pass 6. quota usage and limits are stored in unliked files (one for users, one for groups)l fsck_ffs(8) will create the files if needed, or free them if needed. This means that after enabling or disabling quotas on a filesystem; a fsck_ffs(8) run is required. quotacheck(8) is not needed any more, on a unclean shutdown fsck or journal replay will take care of fixing quotas. newfs(8) can create a ready-to-mount quota-enabled filesystem (superblock flags are set and quota inodes are created). Other new features or semantic changes: - default quota datas, applied to users or groups which don't already have a quota entry - per-user/group grace time (instead of a filesystem global one) - 0 really means "nothing allowed at all", not "no limit". If you want "no limit", set the limit to UQUAD_MAX (tools will understand "unlimited" and "-") A quota file is structured as follow: it starts with a header, containing a few per-filesystem values, and the default quota limits. Quota entries are linked together as a simple list, each entry has a pointer (as an offset withing the file) to the next. The header has a pointer to a list of free quota entries, and a hash table of in-use entries. The size of the hash table depends on the filesystem block size (header+hash table should fit in the first block). The file is not sparse and is a multiple of filesystem block size (when the free quota entry list is empty a new filesystem block is allocated). quota entries to not cross filesystem block boundaries. In memory, the kernel keeps a cache of recently used quota entries as a reference to the block number, and offset withing the block. The quota entry itself is keept in the buf cache. fsck_ffs(8), tunefs(8) and newfs(8) supports are completed (with related atf tests :) The kernel can update disk usage and report it via quotactl(2). Todo: enforce quotas limits (limits are not checked by kernel yet) update repquota, edquota and rpc.rquotad to the new world implement compat_50_quotactl ioctl. update quotactl(2) man page fsck_ffs required fixes so that allocating new blocks or inodes will properly update the superblock and cg sumaries. This was not an issue up to now because superblock and cg sumaries check happened last, but now allocations or frees can happen in pass 6.
Revision 1.14 / (download) - annotate - [select for diffs], Fri Nov 19 12:36:49 2010 UTC (13 years, 4 months ago) by pooka
Branch: MAIN
CVS Tags: matt-mips64-premerge-20101231,
bouyer-quota2-nbase,
bouyer-quota2-base
Branch point for: bouyer-quota2
Changes since 1.13: +2 -1
lines
Diff to previous 1.13 (colored)
test snapshots on ffsv2 too