head 1.11; access; symbols netbsd-11-0-RC7:1.11 netbsd-11-0-RC6:1.11 netbsd-11-0-RC5:1.11 netbsd-11-0-RC4:1.11 netbsd-11-0-RC3:1.11 netbsd-11-0-RC2:1.11 netbsd-11-0-RC1:1.11 perseant-exfatfs-base-20250801:1.11 netbsd-11:1.11.0.46 netbsd-11-base:1.11 netbsd-10-1-RELEASE:1.11 perseant-exfatfs-base-20240630:1.11 perseant-exfatfs:1.11.0.44 perseant-exfatfs-base:1.11 netbsd-8-3-RELEASE:1.11 netbsd-9-4-RELEASE:1.11 netbsd-10-0-RELEASE:1.11 netbsd-10-0-RC6:1.11 netbsd-10-0-RC5:1.11 netbsd-10-0-RC4:1.11 netbsd-10-0-RC3:1.11 netbsd-10-0-RC2:1.11 netbsd-10-0-RC1:1.11 netbsd-10:1.11.0.42 netbsd-10-base:1.11 netbsd-9-3-RELEASE:1.11 cjep_sun2x-base1:1.11 cjep_sun2x:1.11.0.40 cjep_sun2x-base:1.11 cjep_staticlib_x-base1:1.11 netbsd-9-2-RELEASE:1.11 cjep_staticlib_x:1.11.0.38 cjep_staticlib_x-base:1.11 netbsd-9-1-RELEASE:1.11 phil-wifi-20200421:1.11 phil-wifi-20200411:1.11 is-mlppp:1.11.0.36 is-mlppp-base:1.11 phil-wifi-20200406:1.11 netbsd-8-2-RELEASE:1.11 netbsd-9-0-RELEASE:1.11 netbsd-9-0-RC2:1.11 netbsd-9-0-RC1:1.11 phil-wifi-20191119:1.11 netbsd-9:1.11.0.34 netbsd-9-base:1.11 phil-wifi-20190609:1.11 netbsd-8-1-RELEASE:1.11 netbsd-8-1-RC1:1.11 pgoyette-compat-merge-20190127:1.11 pgoyette-compat-20190127:1.11 pgoyette-compat-20190118:1.11 pgoyette-compat-1226:1.11 pgoyette-compat-1126:1.11 pgoyette-compat-1020:1.11 pgoyette-compat-0930:1.11 pgoyette-compat-0906:1.11 netbsd-7-2-RELEASE:1.11 pgoyette-compat-0728:1.11 netbsd-8-0-RELEASE:1.11 phil-wifi:1.11.0.32 phil-wifi-base:1.11 pgoyette-compat-0625:1.11 netbsd-8-0-RC2:1.11 pgoyette-compat-0521:1.11 pgoyette-compat-0502:1.11 pgoyette-compat-0422:1.11 netbsd-8-0-RC1:1.11 pgoyette-compat-0415:1.11 pgoyette-compat-0407:1.11 pgoyette-compat-0330:1.11 pgoyette-compat-0322:1.11 pgoyette-compat-0315:1.11 netbsd-7-1-2-RELEASE:1.11 pgoyette-compat:1.11.0.30 pgoyette-compat-base:1.11 netbsd-7-1-1-RELEASE:1.11 matt-nb8-mediatek:1.11.0.28 matt-nb8-mediatek-base:1.11 perseant-stdc-iso10646:1.11.0.26 perseant-stdc-iso10646-base:1.11 netbsd-8:1.11.0.24 netbsd-8-base:1.11 prg-localcount2-base3:1.11 prg-localcount2-base2:1.11 prg-localcount2-base1:1.11 prg-localcount2:1.11.0.22 prg-localcount2-base:1.11 pgoyette-localcount-20170426:1.11 bouyer-socketcan-base1:1.11 pgoyette-localcount-20170320:1.11 netbsd-7-1:1.11.0.20 netbsd-7-1-RELEASE:1.11 netbsd-7-1-RC2:1.11 netbsd-7-nhusb-base-20170116:1.11 bouyer-socketcan:1.11.0.18 bouyer-socketcan-base:1.11 pgoyette-localcount-20170107:1.11 netbsd-7-1-RC1:1.11 pgoyette-localcount-20161104:1.11 netbsd-7-0-2-RELEASE:1.11 localcount-20160914:1.11 netbsd-7-nhusb:1.11.0.16 netbsd-7-nhusb-base:1.11 pgoyette-localcount-20160806:1.11 pgoyette-localcount-20160726:1.11 pgoyette-localcount:1.11.0.14 pgoyette-localcount-base:1.11 netbsd-7-0-1-RELEASE:1.11 netbsd-7-0:1.11.0.12 netbsd-7-0-RELEASE:1.11 netbsd-7-0-RC3:1.11 netbsd-7-0-RC2:1.11 netbsd-7-0-RC1:1.11 netbsd-5-2-3-RELEASE:1.5 netbsd-5-1-5-RELEASE:1.5 netbsd-6-0-6-RELEASE:1.10 netbsd-6-1-5-RELEASE:1.10 netbsd-7:1.11.0.10 netbsd-7-base:1.11 yamt-pagecache-base9:1.11 yamt-pagecache-tag8:1.8.4.1 netbsd-6-1-4-RELEASE:1.10 netbsd-6-0-5-RELEASE:1.10 tls-earlyentropy:1.11.0.8 tls-earlyentropy-base:1.11 riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.11 riastradh-drm2-base3:1.11 netbsd-6-1-3-RELEASE:1.10 netbsd-6-0-4-RELEASE:1.10 netbsd-5-2-2-RELEASE:1.5 netbsd-5-1-4-RELEASE:1.5 netbsd-6-1-2-RELEASE:1.10 netbsd-6-0-3-RELEASE:1.10 netbsd-5-2-1-RELEASE:1.5 netbsd-5-1-3-RELEASE:1.5 netbsd-6-1-1-RELEASE:1.10 riastradh-drm2-base2:1.11 riastradh-drm2-base1:1.11 riastradh-drm2:1.11.0.4 riastradh-drm2-base:1.11 netbsd-6-1:1.10.0.8 netbsd-6-0-2-RELEASE:1.10 netbsd-6-1-RELEASE:1.10 netbsd-6-1-RC4:1.10 netbsd-6-1-RC3:1.10 agc-symver:1.11.0.6 agc-symver-base:1.11 netbsd-6-1-RC2:1.10 netbsd-6-1-RC1:1.10 yamt-pagecache-base8:1.11 netbsd-5-2:1.5.0.66 netbsd-6-0-1-RELEASE:1.10 yamt-pagecache-base7:1.11 netbsd-5-2-RELEASE:1.5 netbsd-5-2-RC1:1.5 matt-nb6-plus-nbase:1.10 yamt-pagecache-base6:1.11 netbsd-6-0:1.10.0.6 netbsd-6-0-RELEASE:1.10 netbsd-6-0-RC2:1.10 tls-maxphys:1.11.0.2 tls-maxphys-base:1.11 matt-nb6-plus:1.10.0.4 matt-nb6-plus-base:1.10 netbsd-6-0-RC1:1.10 yamt-pagecache-base5:1.11 yamt-pagecache-base4:1.11 netbsd-6:1.10.0.2 netbsd-6-base:1.10 netbsd-5-1-2-RELEASE:1.5 netbsd-5-1-1-RELEASE:1.5 yamt-pagecache-base3:1.8 yamt-pagecache-base2:1.8 yamt-pagecache:1.8.0.4 yamt-pagecache-base:1.8 cherry-xenmp:1.8.0.2 cherry-xenmp-base:1.8 bouyer-quota2-nbase:1.5 bouyer-quota2:1.5.0.64 bouyer-quota2-base:1.5 matt-mips64-premerge-20101231:1.5 matt-nb5-mips64-premerge-20101231:1.5 matt-nb5-pq3:1.5.0.62 matt-nb5-pq3-base:1.5 netbsd-5-1:1.5.0.60 netbsd-5-1-RELEASE:1.5 netbsd-5-1-RC4:1.5 matt-nb5-mips64-k15:1.5 netbsd-5-1-RC3:1.5 netbsd-5-1-RC2:1.5 netbsd-5-1-RC1:1.5 netbsd-5-0-2-RELEASE:1.5 matt-nb5-mips64-premerge-20091211:1.5 matt-premerge-20091211:1.5 matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.5 matt-nb4-mips64-k7-u2a-k9b:1.5 matt-nb5-mips64-u1-k1-k5:1.5 matt-nb5-mips64:1.5.0.58 netbsd-5-0-1-RELEASE:1.5 jym-xensuspend-nbase:1.5 netbsd-5-0:1.5.0.56 netbsd-5-0-RELEASE:1.5 netbsd-5-0-RC4:1.5 netbsd-5-0-RC3:1.5 netbsd-5-0-RC2:1.5 jym-xensuspend:1.5.0.54 jym-xensuspend-base:1.5 netbsd-5-0-RC1:1.5 netbsd-5:1.5.0.52 netbsd-5-base:1.5 matt-mips64-base2:1.5 matt-mips64:1.5.0.50 mjf-devfs2:1.5.0.48 mjf-devfs2-base:1.5 netbsd-4-0-1-RELEASE:1.5 wrstuden-revivesa-base-3:1.5 wrstuden-revivesa-base-2:1.5 wrstuden-fixsa-newbase:1.5 wrstuden-revivesa-base-1:1.5 yamt-pf42-base4:1.5 yamt-pf42-base3:1.5 hpcarm-cleanup-nbase:1.5 yamt-pf42-baseX:1.5 yamt-pf42-base2:1.5 wrstuden-revivesa:1.5.0.46 wrstuden-revivesa-base:1.5 yamt-pf42:1.5.0.44 yamt-pf42-base:1.5 keiichi-mipv6-nbase:1.5 keiichi-mipv6:1.5.0.42 keiichi-mipv6-base:1.5 matt-armv6-nbase:1.5 matt-armv6-prevmlocking:1.5 wrstuden-fixsa-base-1:1.5 netbsd-4-0:1.5.0.40 netbsd-4-0-RELEASE:1.5 cube-autoconf:1.5.0.38 cube-autoconf-base:1.5 netbsd-4-0-RC5:1.5 netbsd-4-0-RC4:1.5 netbsd-4-0-RC3:1.5 netbsd-4-0-RC2:1.5 netbsd-4-0-RC1:1.5 matt-armv6:1.5.0.36 matt-armv6-base:1.5 matt-mips64-base:1.5 hpcarm-cleanup:1.5.0.34 hpcarm-cleanup-base:1.5 netbsd-3-1-1-RELEASE:1.5 netbsd-3-0-3-RELEASE:1.5 wrstuden-fixsa:1.5.0.32 wrstuden-fixsa-base:1.5 abandoned-netbsd-4-base:1.5 abandoned-netbsd-4:1.5.0.26 netbsd-3-1:1.5.0.28 netbsd-3-1-RELEASE:1.5 netbsd-3-0-2-RELEASE:1.5 netbsd-3-1-RC4:1.5 netbsd-3-1-RC3:1.5 netbsd-3-1-RC2:1.5 netbsd-3-1-RC1:1.5 netbsd-4:1.5.0.30 netbsd-4-base:1.5 netbsd-3-0-1-RELEASE:1.5 netbsd-3-0:1.5.0.24 netbsd-3-0-RELEASE:1.5 netbsd-3-0-RC6:1.5 netbsd-3-0-RC5:1.5 netbsd-3-0-RC4:1.5 netbsd-3-0-RC3:1.5 netbsd-3-0-RC2:1.5 netbsd-3-0-RC1:1.5 netbsd-2-0-3-RELEASE:1.5 netbsd-2-1:1.5.0.22 netbsd-2-1-RELEASE:1.5 netbsd-2-1-RC6:1.5 netbsd-2-1-RC5:1.5 netbsd-2-1-RC4:1.5 netbsd-2-1-RC3:1.5 netbsd-2-1-RC2:1.5 netbsd-2-1-RC1:1.5 netbsd-2-0-2-RELEASE:1.5 netbsd-3:1.5.0.20 netbsd-3-base:1.5 netbsd-2-0-1-RELEASE:1.5 netbsd-2:1.5.0.18 netbsd-2-base:1.5 netbsd-2-0-RELEASE:1.5 netbsd-2-0-RC5:1.5 netbsd-2-0-RC4:1.5 netbsd-2-0-RC3:1.5 netbsd-2-0-RC2:1.5 netbsd-2-0-RC1:1.5 netbsd-2-0:1.5.0.16 netbsd-2-0-base:1.5 netbsd-1-6-PATCH002-RELEASE:1.5 netbsd-1-6-PATCH002:1.5 netbsd-1-6-PATCH002-RC4:1.5 netbsd-1-6-PATCH002-RC3:1.5 netbsd-1-6-PATCH002-RC2:1.5 netbsd-1-6-PATCH002-RC1:1.5 netbsd-1-6-PATCH001:1.5 netbsd-1-6-PATCH001-RELEASE:1.5 netbsd-1-6-PATCH001-RC3:1.5 netbsd-1-6-PATCH001-RC2:1.5 netbsd-1-6-PATCH001-RC1:1.5 fvdl_fs64_base:1.5 netbsd-1-6-RELEASE:1.5 netbsd-1-6-RC3:1.5 netbsd-1-6-RC2:1.5 netbsd-1-6-RC1:1.5 netbsd-1-6:1.5.0.14 netbsd-1-6-base:1.5 netbsd-1-5-PATCH003:1.5 netbsd-1-5-PATCH002:1.5 netbsd-1-5-PATCH001:1.5 netbsd-1-5-RELEASE:1.5 netbsd-1-5-BETA2:1.5 netbsd-1-5-BETA:1.5 netbsd-1-4-PATCH003:1.5 netbsd-1-5-ALPHA2:1.5 netbsd-1-5:1.5.0.12 netbsd-1-5-base:1.5 minoura-xpg4dl-base:1.5 minoura-xpg4dl:1.5.0.10 netbsd-1-4-PATCH002:1.5 wrstuden-devbsize-19991221:1.5 wrstuden-devbsize:1.5.0.8 wrstuden-devbsize-base:1.5 comdex-fall-1999:1.5.0.6 comdex-fall-1999-base:1.5 netbsd-1-4-PATCH001:1.5 netbsd-1-4-RELEASE:1.5 netbsd-1-4:1.5.0.4 netbsd-1-4-base:1.5 netbsd-1-3-PATCH003:1.5 netbsd-1-3-PATCH003-CANDIDATE2:1.5 netbsd-1-3-PATCH003-CANDIDATE1:1.5 netbsd-1-3-PATCH003-CANDIDATE0:1.5 netbsd-1-3-PATCH002:1.5 netbsd-1-3-PATCH001:1.5 netbsd-1-3-RELEASE:1.5 netbsd-1-3-BETA:1.5 netbsd-1-3:1.5.0.2 netbsd-1-3-base:1.5 lite-2:1.1.1.1 netbsd-1-2-PATCH001:1.4 netbsd-1-2-RELEASE:1.4 netbsd-1-2-BETA:1.4 netbsd-1-2:1.4.0.6 netbsd-1-2-base:1.4 netbsd-1-1-PATCH001:1.4 netbsd-1-1-RELEASE:1.4 netbsd-1-1:1.4.0.2 netbsd-1-1-base:1.4 netbsd-1-0-PATCH06:1.3 netbsd-1-0-PATCH05:1.3 netbsd-1-0-PATCH04:1.3 netbsd-1-0-PATCH03:1.3 netbsd-1-0-PATCH02:1.3 netbsd-1-0-PATCH1:1.3 netbsd-1-0-PATCH0:1.3 netbsd-1-0-RELEASE:1.3 netbsd-1-0:1.3.0.2 netbsd-1-0-base:1.3 lite-1:1.1.1.1 CSRG:1.1.1 netbsd-0-9-RELEASE:1.1 netbsd-0-9-BETA:1.1 netbsd-0-9-ALPHA2:1.1 netbsd-0-9-ALPHA:1.1 netbsd-0-9:1.1.0.2 netbsd-0-9-base:1.1 netbsd-0-8:1.1 netbsd-alpha-1:1.1; locks; strict; comment @# @; 1.11 date 2012.04.07.05.07.32; author christos; state Exp; branches; next 1.10; 1.10 date 2012.02.01.17.53.01; author dholland; state Exp; branches; next 1.9; 1.9 date 2012.01.30.16.45.13; author dholland; state Exp; branches; next 1.8; 1.8 date 2011.03.24.17.05.47; author bouyer; state Exp; branches 1.8.4.1; next 1.7; 1.7 date 2011.03.06.23.24.33; author christos; state Exp; branches; next 1.6; 1.6 date 2011.03.06.17.08.43; author bouyer; state Exp; branches; next 1.5; 1.5 date 97.10.18.04.37.55; author lukem; state Exp; branches 1.5.64.1; next 1.4; 1.4 date 94.12.22.11.39.18; author cgd; state Exp; branches; next 1.3; 1.3 date 94.06.13.22.04.11; author mycroft; state Exp; branches; next 1.2; 1.2 date 93.07.30.21.41.10; author mycroft; state Exp; branches; next 1.1; 1.1 date 93.04.09.12.16.18; author cgd; state Exp; branches 1.1.1.1; next ; 1.8.4.1 date 2012.04.17.00.09.52; author yamt; state Exp; branches; next ; 1.5.64.1 date 2011.02.09.10.21.02; author bouyer; state Exp; branches; next ; 1.1.1.1 date 94.06.13.22.03.55; author mycroft; state Exp; branches; next ; desc @@ 1.11 log @use getfsspecname() @ text @# from: @@(#)Makefile 8.1 (Berkeley) 6/6/93 # $NetBSD: Makefile,v 1.10 2012/02/01 17:53:01 dholland Exp $ .include WARNS ?= 4 PROG= quotaon SRCS= quotaon.c MAN= quotaon.8 MLINKS= quotaon.8 quotaoff.8 LINKS= ${BINDIR}/quotaon ${BINDIR}/quotaoff DPADD= ${LIBQUOTA} ${LIBRPCSVC} ${LIBUTIL} LDADD= -lquota -lrpcsvc -lutil .include @ 1.10 log @libquota no longer requires libprop. Also remove some other no-longer-used .PATH'd-in bits from repquota. @ text @d2 1 a2 1 # $NetBSD: Makefile,v 1.9 2012/01/30 16:45:13 dholland Exp $ d13 2 a14 2 DPADD= ${LIBQUOTA} ${LIBRPCSVC} LDADD= -lquota -lrpcsvc @ 1.9 log @Add quota_quotaon() and quota_quotaoff(). Use them in quotaon(8). @ text @d2 1 a2 1 # $NetBSD: Makefile,v 1.8 2011/03/24 17:05:47 bouyer Exp $ d13 2 a14 2 DPADD= ${LIBQUOTA} ${LIBPROP} ${LIBRPCSVC} LDADD= -lquota -lprop -lrpcsvc @ 1.8 log @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 ...) @ text @d2 1 a2 1 # $NetBSD: Makefile,v 1.7 2011/03/06 23:24:33 christos Exp $ a12 5 .PATH: ${NETBSDSRCDIR}/usr.bin/quota SRCS+= quotautil.c CPPFLAGS+=-I${NETBSDSRCDIR}/usr.bin/quota CPPFLAGS+=-I${NETBSDSRCDIR}/sys @ 1.8.4.1 log @sync with head @ text @d2 1 a2 1 # $NetBSD$ d13 7 a19 2 DPADD= ${LIBQUOTA} ${LIBRPCSVC} ${LIBUTIL} LDADD= -lquota -lrpcsvc -lutil @ 1.7 log @use common utils @ text @d2 1 a2 1 # $NetBSD: Makefile,v 1.6 2011/03/06 17:08:43 bouyer Exp $ a15 1 a16 2 DPADD= ${LIBPROP} LDADD= -lprop d18 2 a19 2 .PATH: ${NETBSDSRCDIR}/sys/ufs/ufs SRCS+= quota2_prop.c @ 1.6 log @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. @ text @d2 1 a2 1 # $NetBSD$ d5 2 d13 4 @ 1.5 log @rcsid fascism @ text @d4 1 d6 1 d11 7 @ 1.5.64.1 log @Make it compile with new quotactl @ text @d2 1 a2 1 # $NetBSD: Makefile,v 1.5 1997/10/18 04:37:55 lukem Exp $ a3 1 .include a4 1 SRCS= quotaon.c a8 7 CPPFLAGS+=-I${NETBSDSRCDIR}/sys DPADD= ${LIBPROP} LDADD= -lprop .PATH: ${NETBSDSRCDIR}/sys/ufs/ufs SRCS+= quota2_prop.c @ 1.4 log @specify man pages the new way. @ text @d2 1 a2 1 # $Id: Makefile,v 1.3 1994/06/13 22:04:11 mycroft Exp $ @ 1.3 log @Merge local changes. @ text @d2 1 a2 1 # $Id: $ d5 1 a5 1 MAN8= quotaon.0 @ 1.2 log @Add RCS identifiers. @ text @d1 1 a1 1 # from: @@(#)Makefile 5.3 (Berkeley) 5/11/90 @ 1.1 log @added accton, edquota, flcopy, gettable, htable, iostat, quotaon, repquota, trpt, and trsp, per (currently alpha) patch 125. @ text @d1 2 a2 1 # @@(#)Makefile 5.3 (Berkeley) 5/11/90 @ 1.1.1.1 log @Update from 4.4-Lite. @ text @d1 1 a1 1 # @@(#)Makefile 8.1 (Berkeley) 6/6/93 @