Up to [cvs.NetBSD.org] / src / sys / ufs / ufs
Request diff between arbitrary revisions
Default branch: MAIN
Revision 1.11 / (download) - annotate - [select for diffs], Wed Feb 22 21:49:45 2023 UTC (13 months, 3 weeks ago) by riastradh
Branch: MAIN
CVS Tags: thorpej-ifq-base,
thorpej-ifq,
thorpej-altq-separation-base,
thorpej-altq-separation,
HEAD
Changes since 1.10: +2 -2
lines
Diff to previous 1.10 (colored) to selected 1.4.4.1 (colored)
ufs: Nix trailing whitespace and tidy up some other minor KNF.
Revision 1.9.6.1 / (download) - annotate - [select for diffs], Sun Dec 3 11:39:22 2017 UTC (6 years, 4 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.9: +2 -2
lines
Diff to previous 1.9 (colored) next main 1.10 (colored) to selected 1.4.4.1 (colored)
update from HEAD
Revision 1.10 / (download) - annotate - [select for diffs], Wed Oct 25 18:06:01 2017 UTC (6 years, 5 months ago) by jdolecek
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202,
thorpej-i2c-spi-conf2-base,
thorpej-i2c-spi-conf2,
thorpej-i2c-spi-conf-base,
thorpej-i2c-spi-conf,
thorpej-futex2-base,
thorpej-futex2,
thorpej-futex-base,
thorpej-futex,
thorpej-cfargs2-base,
thorpej-cfargs2,
thorpej-cfargs-base,
thorpej-cfargs,
phil-wifi-base,
phil-wifi-20200421,
phil-wifi-20200411,
phil-wifi-20200406,
phil-wifi-20191119,
phil-wifi-20190609,
phil-wifi,
pgoyette-compat-merge-20190127,
pgoyette-compat-base,
pgoyette-compat-20190127,
pgoyette-compat-20190118,
pgoyette-compat-1226,
pgoyette-compat-1126,
pgoyette-compat-1020,
pgoyette-compat-0930,
pgoyette-compat-0906,
pgoyette-compat-0728,
pgoyette-compat-0625,
pgoyette-compat-0521,
pgoyette-compat-0502,
pgoyette-compat-0422,
pgoyette-compat-0415,
pgoyette-compat-0407,
pgoyette-compat-0330,
pgoyette-compat-0322,
pgoyette-compat-0315,
pgoyette-compat,
netbsd-9-base,
netbsd-9-3-RELEASE,
netbsd-9-2-RELEASE,
netbsd-9-1-RELEASE,
netbsd-9-0-RELEASE,
netbsd-9-0-RC2,
netbsd-9-0-RC1,
netbsd-9,
netbsd-10-base,
netbsd-10-0-RELEASE,
netbsd-10-0-RC6,
netbsd-10-0-RC5,
netbsd-10-0-RC4,
netbsd-10-0-RC3,
netbsd-10-0-RC2,
netbsd-10-0-RC1,
netbsd-10,
isaki-audio2-base,
isaki-audio2,
is-mlppp-base,
is-mlppp,
cjep_sun2x-base1,
cjep_sun2x-base,
cjep_sun2x,
cjep_staticlib_x-base1,
cjep_staticlib_x-base,
cjep_staticlib_x,
bouyer-xenpvh-base2,
bouyer-xenpvh-base1,
bouyer-xenpvh-base,
bouyer-xenpvh,
bouyer-sunxi-drm-base,
bouyer-sunxi-drm,
ad-namecache-base3,
ad-namecache-base2,
ad-namecache-base1,
ad-namecache-base,
ad-namecache
Changes since 1.9: +2 -2
lines
Diff to previous 1.9 (colored) to selected 1.4.4.1 (colored)
fix tyop, PR kern/52653 by Edgar Fuss
Revision 1.5.2.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:08:57 2012 UTC (12 years ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.5: +22 -26
lines
Diff to previous 1.5 (colored) next main 1.6 (colored) to selected 1.4.4.1 (colored)
sync with head
Revision 1.5.6.1 / (download) - annotate - [select for diffs], Sat Feb 18 07:35:56 2012 UTC (12 years, 2 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.5: +22 -26
lines
Diff to previous 1.5 (colored) next main 1.6 (colored) to selected 1.4.4.1 (colored)
merge to -current.
Revision 1.9 / (download) - annotate - [select for diffs], Sun Feb 5 14:19:04 2012 UTC (12 years, 2 months ago) by dholland
Branch: MAIN
CVS Tags: yamt-pagecache-base9,
yamt-pagecache-base8,
yamt-pagecache-base7,
yamt-pagecache-base6,
yamt-pagecache-base5,
yamt-pagecache-base4,
tls-maxphys-base,
tls-earlyentropy-base,
tls-earlyentropy,
rmind-smpnet-nbase,
rmind-smpnet-base,
rmind-smpnet,
riastradh-xf86-video-intel-2-7-1-pre-2-21-15,
riastradh-drm2-base3,
riastradh-drm2-base2,
riastradh-drm2-base1,
riastradh-drm2-base,
riastradh-drm2,
prg-localcount2-base3,
prg-localcount2-base2,
prg-localcount2-base1,
prg-localcount2-base,
prg-localcount2,
pgoyette-localcount-base,
pgoyette-localcount-20170426,
pgoyette-localcount-20170320,
pgoyette-localcount-20170107,
pgoyette-localcount-20161104,
pgoyette-localcount-20160806,
pgoyette-localcount-20160726,
pgoyette-localcount,
perseant-stdc-iso10646-base,
perseant-stdc-iso10646,
nick-nhusb-base-20170825,
nick-nhusb-base-20170204,
nick-nhusb-base-20161204,
nick-nhusb-base-20161004,
nick-nhusb-base-20160907,
nick-nhusb-base-20160529,
nick-nhusb-base-20160422,
nick-nhusb-base-20160319,
nick-nhusb-base-20151226,
nick-nhusb-base-20150921,
nick-nhusb-base-20150606,
nick-nhusb-base-20150406,
nick-nhusb-base,
nick-nhusb,
netbsd-8-base,
netbsd-8-2-RELEASE,
netbsd-8-1-RELEASE,
netbsd-8-1-RC1,
netbsd-8-0-RELEASE,
netbsd-8-0-RC2,
netbsd-8-0-RC1,
netbsd-8,
netbsd-7-nhusb-base-20170116,
netbsd-7-nhusb-base,
netbsd-7-nhusb,
netbsd-7-base,
netbsd-7-2-RELEASE,
netbsd-7-1-RELEASE,
netbsd-7-1-RC2,
netbsd-7-1-RC1,
netbsd-7-1-2-RELEASE,
netbsd-7-1-1-RELEASE,
netbsd-7-1,
netbsd-7-0-RELEASE,
netbsd-7-0-RC3,
netbsd-7-0-RC2,
netbsd-7-0-RC1,
netbsd-7-0-2-RELEASE,
netbsd-7-0-1-RELEASE,
netbsd-7-0,
netbsd-7,
netbsd-6-base,
netbsd-6-1-RELEASE,
netbsd-6-1-RC4,
netbsd-6-1-RC3,
netbsd-6-1-RC2,
netbsd-6-1-RC1,
netbsd-6-1-5-RELEASE,
netbsd-6-1-4-RELEASE,
netbsd-6-1-3-RELEASE,
netbsd-6-1-2-RELEASE,
netbsd-6-1-1-RELEASE,
netbsd-6-1,
netbsd-6-0-RELEASE,
netbsd-6-0-RC2,
netbsd-6-0-RC1,
netbsd-6-0-6-RELEASE,
netbsd-6-0-5-RELEASE,
netbsd-6-0-4-RELEASE,
netbsd-6-0-3-RELEASE,
netbsd-6-0-2-RELEASE,
netbsd-6-0-1-RELEASE,
netbsd-6-0,
netbsd-6,
matt-nb8-mediatek-base,
matt-nb8-mediatek,
matt-nb6-plus-nbase,
matt-nb6-plus-base,
matt-nb6-plus,
localcount-20160914,
khorben-n900,
jmcneill-usbmp-base9,
jmcneill-usbmp-base8,
jmcneill-usbmp-base7,
jmcneill-usbmp-base6,
jmcneill-usbmp-base5,
jmcneill-usbmp-base4,
jmcneill-usbmp-base3,
jmcneill-usbmp-base2,
jmcneill-usbmp-base10,
jdolecek-ncq-base,
jdolecek-ncq,
bouyer-socketcan-base1,
bouyer-socketcan-base,
bouyer-socketcan,
agc-symver-base,
agc-symver
Branch point for: tls-maxphys
Changes since 1.8: +18 -1
lines
Diff to previous 1.8 (colored) to selected 1.4.4.1 (colored)
Migrate one last leftover bit (used only by the kernel now) to sys/ufs/ufs and remove the old quota headers and no-longer-used shared code. Ok by releng.
Revision 1.8 / (download) - annotate - [select for diffs], Sun Jan 29 07:20:27 2012 UTC (12 years, 2 months ago) by dholland
Branch: MAIN
Changes since 1.7: +1 -8
lines
Diff to previous 1.7 (colored) to selected 1.4.4.1 (colored)
quota2_check_limit() is used in only one place, so don't stuff it in a header file.
Revision 1.7 / (download) - annotate - [select for diffs], Sun Jan 29 07:17:41 2012 UTC (12 years, 2 months ago) by dholland
Branch: MAIN
Changes since 1.6: +1 -18
lines
Diff to previous 1.6 (colored) to selected 1.4.4.1 (colored)
Remove now-unused declarations from quota2.h.
Revision 1.6 / (download) - annotate - [select for diffs], Sun Jan 29 07:16:53 2012 UTC (12 years, 2 months ago) by dholland
Branch: MAIN
Changes since 1.5: +5 -2
lines
Diff to previous 1.5 (colored) to selected 1.4.4.1 (colored)
Remove references to <quota/quotaprop.h> in src/sys/ufs. The remaining references in the kernel are in vfs_quotactl.c, the compat_50 code for the old quotactl (to be fixed up), and the code compiled from src/common/lib/libquota.
Revision 1.4.4.1 / (download) - annotate - [selected], Thu Jun 23 14:20:32 2011 UTC (12 years, 9 months ago) by cherry
Branch: cherry-xenmp
Changes since 1.4: +1 -3
lines
Diff to previous 1.4 (colored) next main 1.5 (colored)
Catchup with rmind-uvmplock merge.
Revision 1.4.2.3 / (download) - annotate - [select for diffs], Sun Jun 12 00:24:31 2011 UTC (12 years, 10 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.4.2.2: +0 -2
lines
Diff to previous 1.4.2.2 (colored) to branchpoint 1.4 (colored) next main 1.5 (colored) to selected 1.4.4.1 (colored)
sync with head
Revision 1.5 / (download) - annotate - [select for diffs], Tue Jun 7 14:56:13 2011 UTC (12 years, 10 months ago) by bouyer
Branch: MAIN
CVS Tags: yamt-pagecache-base3,
yamt-pagecache-base2,
yamt-pagecache-base,
rmind-uvmplock-nbase,
rmind-uvmplock-base,
jmcneill-usbmp-pre-base2,
jmcneill-usbmp-base,
jmcneill-audiomp3-base,
jmcneill-audiomp3
Branch point for: yamt-pagecache,
jmcneill-usbmp
Changes since 1.4: +1 -3
lines
Diff to previous 1.4 (colored) to selected 1.4.4.1 (colored)
Fix bad cut'n'paste in copyright. Pointed out by dyoung@
Revision 1.4.6.2 / (download) - annotate - [select for diffs], Mon Jun 6 09:10:18 2011 UTC (12 years, 10 months ago) by jruoho
Branch: jruoho-x86intr
Changes since 1.4.6.1: +133 -0
lines
Diff to previous 1.4.6.1 (colored) to branchpoint 1.4 (colored) next main 1.5 (colored) to selected 1.4.4.1 (colored)
Sync with HEAD.
Revision 1.4.2.2 / (download) - annotate - [select for diffs], Thu Apr 21 01:42:21 2011 UTC (13 years ago) by rmind
Branch: rmind-uvmplock
Changes since 1.4.2.1: +133 -0
lines
Diff to previous 1.4.2.1 (colored) to branchpoint 1.4 (colored) to selected 1.4.4.1 (colored)
sync with head
Revision 1.4.6.1, Thu Mar 24 17:05:45 2011 UTC (13 years ago) by jruoho
Branch: jruoho-x86intr
Changes since 1.4: +0 -133
lines
FILE REMOVED
file quota2.h was added on branch jruoho-x86intr on 2011-06-06 09:10:18 +0000
Revision 1.4.2.1, Thu Mar 24 17:05:45 2011 UTC (13 years ago) by rmind
Branch: rmind-uvmplock
Changes since 1.4: +0 -133
lines
FILE REMOVED
file quota2.h was added on branch rmind-uvmplock on 2011-04-21 01:42:21 +0000
Revision 1.4 / (download) - annotate - [select for diffs], Thu Mar 24 17:05:45 2011 UTC (13 years ago) by bouyer
Branch: MAIN
CVS Tags: cherry-xenmp-base
Branch point for: rmind-uvmplock,
jruoho-x86intr,
cherry-xenmp
Changes since 1.3: +30 -12
lines
Diff to previous 1.3 (colored) to selected 1.4.4.1 (colored)
Add a new libquota library, which contains some blocks to build and/or parse quota plists; as well as a getfsquota() function to retrieve quotas for a single id from a single filesystem (whatever filesystem this is: a local quota-enabled fs or NFS). This is build on functions getufsquota() (for local filesystems with UFS-like quotas) and getnfsquota(); which are also available to userland programs. move functions from quota2_subr.c to libquota or libprop as appropriate, and ajust in-tree quota tools. move some declarations from kernel headers to either sys/quota.h or quota/quota.h as appropriate. ufs/ufs/quota.h still installed because it's needed by other installed ufs headers. ufs/ufs/quota1.h still installed as a quick&dirty way to get a code using the old quotactl() to compile (just include ufs/ufs/quota1.h instead of ufs/ufs/quota.h - old code won't compile without this change and this is on purpose). Discussed on tech-kern@ and tech-net@ (long thread, but not much about libquota itself ...)
Revision 1.3 / (download) - annotate - [select for diffs], Wed Mar 9 18:12:04 2011 UTC (13 years, 1 month ago) by dholland
Branch: MAIN
Changes since 1.2: +2 -2
lines
Diff to previous 1.2 (colored) to selected 1.4.4.1 (colored)
typo in comment
Revision 1.2 / (download) - annotate - [select for diffs], Sun Mar 6 17:08:39 2011 UTC (13 years, 1 month ago) by bouyer
Branch: MAIN
Changes since 1.1: +115 -0
lines
Diff to previous 1.1 (colored) to selected 1.4.4.1 (colored)
merge the bouyer-quota2 branch. This adds a new on-disk format to store disk quota usage and limits, integrated with ffs metadata. Usage is checked by fsck_ffs (no more quotacheck) and is covered by the WAPBL journal. Enabled with kernel option QUOTA2 (added where QUOTA was enabled in kernel config files), turned on with tunefs(8) on a per-filesystem basis. mount_mfs(8) can also turn quotas on. See http://mail-index.netbsd.org/tech-kern/2011/02/19/msg010025.html for details.
Revision 1.1.2.6 / (download) - annotate - [select for diffs], Thu Feb 3 15:56:16 2011 UTC (13 years, 2 months ago) by bouyer
Branch: bouyer-quota2
Changes since 1.1.2.5: +14 -2
lines
Diff to previous 1.1.2.5 (colored) to branchpoint 1.1 (colored) next main 1.2 (colored) to selected 1.4.4.1 (colored)
factor out code to chech a quota against its limits.
Revision 1.1.2.5 / (download) - annotate - [select for diffs], Mon Jan 31 15:19:21 2011 UTC (13 years, 2 months ago) by bouyer
Branch: bouyer-quota2
Changes since 1.1.2.4: +2 -7
lines
Diff to previous 1.1.2.4 (colored) to branchpoint 1.1 (colored) to selected 1.4.4.1 (colored)
Rename defininition for limits Q2V_* to QL_* and move from quota2.h to quota.h.
Revision 1.1.2.4 / (download) - annotate - [select for diffs], Sat Jan 29 23:22:00 2011 UTC (13 years, 2 months ago) by bouyer
Branch: bouyer-quota2
Changes since 1.1.2.3: +7 -1
lines
Diff to previous 1.1.2.3 (colored) to branchpoint 1.1 (colored) to selected 1.4.4.1 (colored)
Describe how the on-disk structures are protected from concurent access, and try to implement it.
Revision 1.1.2.3 / (download) - annotate - [select for diffs], Fri Jan 28 18:36:06 2011 UTC (13 years, 2 months ago) by bouyer
Branch: bouyer-quota2
Changes since 1.1.2.2: +3 -1
lines
Diff to previous 1.1.2.2 (colored) to branchpoint 1.1 (colored) to selected 1.4.4.1 (colored)
Introduce quota2_ufs_rwq2v() and quota2_ufs_rwq2e() functions, which byteswap a quota2_val or quota2_entry if needed. Use this to get quota2_entry in host order before calling q2etoprop(). quota2_walk_list() will byteswap the offset if needed to leave it in FS byte order in callers.
Revision 1.1.2.2 / (download) - annotate - [select for diffs], Fri Jan 21 16:58:06 2011 UTC (13 years, 2 months ago) by bouyer
Branch: bouyer-quota2
Changes since 1.1.2.1: +1 -2
lines
Diff to previous 1.1.2.1 (colored) to branchpoint 1.1 (colored) to selected 1.4.4.1 (colored)
Add support for quotactl("getall") command, and convert repquota to new world.
Revision 1.1.2.1 / (download) - annotate - [select for diffs], Thu Jan 20 14:25:03 2011 UTC (13 years, 2 months ago) by bouyer
Branch: bouyer-quota2
Changes since 1.1: +101 -0
lines
Diff to previous 1.1 (colored) to selected 1.4.4.1 (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.1, Thu Jan 20 14:25:03 2011 UTC (13 years, 2 months ago) by bouyer
Branch: MAIN
CVS Tags: bouyer-quota2-nbase,
bouyer-quota2-base
Branch point for: bouyer-quota2
FILE REMOVED
file quota2.h was initially added on branch bouyer-quota2.