head	1.9;
access;
symbols
	netbsd-11-0-RC4:1.9
	netbsd-11-0-RC3:1.9
	netbsd-11-0-RC2:1.9
	netbsd-11-0-RC1:1.9
	perseant-exfatfs-base-20250801:1.9
	netbsd-11:1.9.0.10
	netbsd-11-base:1.9
	netbsd-10-1-RELEASE:1.9
	perseant-exfatfs-base-20240630:1.9
	perseant-exfatfs:1.9.0.8
	perseant-exfatfs-base:1.9
	netbsd-8-3-RELEASE:1.7
	netbsd-9-4-RELEASE:1.7
	netbsd-10-0-RELEASE:1.9
	netbsd-10-0-RC6:1.9
	netbsd-10-0-RC5:1.9
	netbsd-10-0-RC4:1.9
	netbsd-10-0-RC3:1.9
	netbsd-10-0-RC2:1.9
	netbsd-10-0-RC1:1.9
	netbsd-10:1.9.0.6
	netbsd-10-base:1.9
	netbsd-9-3-RELEASE:1.7
	cjep_sun2x-base1:1.9
	cjep_sun2x:1.9.0.4
	cjep_sun2x-base:1.9
	cjep_staticlib_x-base1:1.9
	netbsd-9-2-RELEASE:1.7
	cjep_staticlib_x:1.9.0.2
	cjep_staticlib_x-base:1.9
	netbsd-9-1-RELEASE:1.7
	phil-wifi-20200421:1.7
	phil-wifi-20200411:1.7
	is-mlppp:1.7.0.20
	is-mlppp-base:1.7
	phil-wifi-20200406:1.7
	netbsd-8-2-RELEASE:1.7
	netbsd-9-0-RELEASE:1.7
	netbsd-9-0-RC2:1.7
	netbsd-9-0-RC1:1.7
	phil-wifi-20191119:1.7
	netbsd-9:1.7.0.18
	netbsd-9-base:1.7
	phil-wifi-20190609:1.7
	netbsd-8-1-RELEASE:1.7
	netbsd-8-1-RC1:1.7
	pgoyette-compat-merge-20190127:1.7
	pgoyette-compat-20190127:1.7
	pgoyette-compat-20190118:1.7
	pgoyette-compat-1226:1.7
	pgoyette-compat-1126:1.7
	pgoyette-compat-1020:1.7
	pgoyette-compat-0930:1.7
	pgoyette-compat-0906:1.7
	netbsd-7-2-RELEASE:1.6
	pgoyette-compat-0728:1.7
	netbsd-8-0-RELEASE:1.7
	phil-wifi:1.7.0.16
	phil-wifi-base:1.7
	pgoyette-compat-0625:1.7
	netbsd-8-0-RC2:1.7
	pgoyette-compat-0521:1.7
	pgoyette-compat-0502:1.7
	pgoyette-compat-0422:1.7
	netbsd-8-0-RC1:1.7
	pgoyette-compat-0415:1.7
	pgoyette-compat-0407:1.7
	pgoyette-compat-0330:1.7
	pgoyette-compat-0322:1.7
	pgoyette-compat-0315:1.7
	netbsd-7-1-2-RELEASE:1.6
	pgoyette-compat:1.7.0.14
	pgoyette-compat-base:1.7
	netbsd-7-1-1-RELEASE:1.6
	matt-nb8-mediatek:1.7.0.12
	matt-nb8-mediatek-base:1.7
	perseant-stdc-iso10646:1.7.0.10
	perseant-stdc-iso10646-base:1.7
	netbsd-8:1.7.0.8
	netbsd-8-base:1.7
	prg-localcount2-base3:1.7
	prg-localcount2-base2:1.7
	prg-localcount2-base1:1.7
	prg-localcount2:1.7.0.6
	prg-localcount2-base:1.7
	pgoyette-localcount-20170426:1.7
	bouyer-socketcan-base1:1.7
	pgoyette-localcount-20170320:1.7
	netbsd-7-1:1.6.0.16
	netbsd-7-1-RELEASE:1.6
	netbsd-7-1-RC2:1.6
	netbsd-7-nhusb-base-20170116:1.6
	bouyer-socketcan:1.7.0.4
	bouyer-socketcan-base:1.7
	pgoyette-localcount-20170107:1.7
	netbsd-7-1-RC1:1.6
	pgoyette-localcount-20161104:1.7
	netbsd-7-0-2-RELEASE:1.6
	localcount-20160914:1.7
	netbsd-7-nhusb:1.6.0.14
	netbsd-7-nhusb-base:1.6
	pgoyette-localcount-20160806:1.7
	pgoyette-localcount-20160726:1.7
	pgoyette-localcount:1.7.0.2
	pgoyette-localcount-base:1.7
	netbsd-7-0-1-RELEASE:1.6
	netbsd-7-0:1.6.0.12
	netbsd-7-0-RELEASE:1.6
	netbsd-7-0-RC3:1.6
	netbsd-7-0-RC2:1.6
	netbsd-7-0-RC1:1.6
	netbsd-6-0-6-RELEASE:1.5
	netbsd-6-1-5-RELEASE:1.5
	netbsd-7:1.6.0.10
	netbsd-7-base:1.6
	yamt-pagecache-base9:1.6
	yamt-pagecache-tag8:1.5.4.1
	netbsd-6-1-4-RELEASE:1.5
	netbsd-6-0-5-RELEASE:1.5
	tls-earlyentropy:1.6.0.8
	tls-earlyentropy-base:1.6
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.6
	riastradh-drm2-base3:1.6
	netbsd-6-1-3-RELEASE:1.5
	netbsd-6-0-4-RELEASE:1.5
	netbsd-6-1-2-RELEASE:1.5
	netbsd-6-0-3-RELEASE:1.5
	netbsd-6-1-1-RELEASE:1.5
	riastradh-drm2-base2:1.6
	riastradh-drm2-base1:1.6
	riastradh-drm2:1.6.0.4
	riastradh-drm2-base:1.6
	netbsd-6-1:1.5.0.12
	netbsd-6-0-2-RELEASE:1.5
	netbsd-6-1-RELEASE:1.5
	netbsd-6-1-RC4:1.5
	netbsd-6-1-RC3:1.5
	agc-symver:1.6.0.6
	agc-symver-base:1.6
	netbsd-6-1-RC2:1.5
	netbsd-6-1-RC1:1.5
	yamt-pagecache-base8:1.6
	netbsd-6-0-1-RELEASE:1.5
	yamt-pagecache-base7:1.6
	matt-nb6-plus-nbase:1.5
	yamt-pagecache-base6:1.6
	netbsd-6-0:1.5.0.10
	netbsd-6-0-RELEASE:1.5
	netbsd-6-0-RC2:1.5
	tls-maxphys:1.6.0.2
	tls-maxphys-base:1.6
	matt-nb6-plus:1.5.0.8
	matt-nb6-plus-base:1.5
	netbsd-6-0-RC1:1.5
	yamt-pagecache-base5:1.5
	yamt-pagecache-base4:1.5
	netbsd-6:1.5.0.6
	netbsd-6-base:1.5
	yamt-pagecache-base3:1.5
	yamt-pagecache-base2:1.5
	yamt-pagecache:1.5.0.4
	yamt-pagecache-base:1.5
	cherry-xenmp:1.5.0.2
	cherry-xenmp-base:1.5
	bouyer-quota2-nbase:1.1
	bouyer-quota2:1.1.0.2
	bouyer-quota2-base:1.1
	matt-mips64-premerge-20101231:1.1;
locks; strict;
comment	@# @;


1.9
date	2020.06.25.17.08.32;	author jruoho;	state Exp;
branches;
next	1.8;
commitid	f9oGIQ1BFR7G1DdC;

1.8
date	2020.06.25.15.01.35;	author jruoho;	state Exp;
branches;
next	1.7;
commitid	MK3BjJlqGaw0kCdC;

1.7
date	2015.12.04.17.20.38;	author christos;	state Exp;
branches;
next	1.6;
commitid	yhQg3SKTSVs4CELy;

1.6
date	2012.07.28.16.08.40;	author njoly;	state Exp;
branches;
next	1.5;

1.5
date	2011.05.09.17.53.54;	author jruoho;	state Exp;
branches
	1.5.4.1;
next	1.4;

1.4
date	2011.05.03.07.56.42;	author jruoho;	state Exp;
branches;
next	1.3;

1.3
date	2011.05.03.06.13.06;	author jruoho;	state Exp;
branches;
next	1.2;

1.2
date	2011.03.06.17.08.41;	author bouyer;	state Exp;
branches;
next	1.1;

1.1
date	2010.11.30.23.17.27;	author riz;	state Exp;
branches
	1.1.2.1;
next	;

1.5.4.1
date	2012.10.30.19.00.07;	author yamt;	state Exp;
branches;
next	;

1.1.2.1
date	2011.01.20.14.25.04;	author bouyer;	state Exp;
branches;
next	;


desc
@@


1.9
log
@Verify that PR kern/52150 is no longer present.
@
text
@#	$NetBSD: Makefile,v 1.8 2020/06/25 15:01:35 jruoho Exp $
#

.include <bsd.own.mk>

TESTSDIR=	${TESTSBASE}/sbin

TESTS_SUBDIRS+=	envstat fsck_ffs gpt ifconfig \
		newfs newfs_msdos resize_ffs \
		route setkey sysctl

.include <bsd.test.mk>
@


1.8
log
@Add a test case for PR kern/53410.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.7 2015/12/04 17:20:38 christos Exp $
d10 1
a10 1
		route sysctl
@


1.7
log
@Add gpt tests
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.6 2012/07/28 16:08:40 njoly Exp $
d8 3
a10 1
TESTS_SUBDIRS+=	fsck_ffs gpt ifconfig newfs newfs_msdos resize_ffs route sysctl
@


1.6
log
@Add testcase for PR/46743
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.5 2011/05/09 17:53:54 jruoho Exp $
d8 1
a8 1
TESTS_SUBDIRS+=	fsck_ffs ifconfig newfs newfs_msdos resize_ffs route sysctl
@


1.5
log
@Add a test case for PR kern/44946. This tests that common first level sysctl
nodes (ddb, hw, machdep, etc.) are not writable by a normal user.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.4 2011/05/03 07:56:42 jruoho Exp $
d8 1
a8 1
TESTS_SUBDIRS+=	fsck_ffs ifconfig newfs resize_ffs route sysctl
@


1.5.4.1
log
@sync with head
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.5 2011/05/09 17:53:54 jruoho Exp $
d8 1
a8 1
TESTS_SUBDIRS+=	fsck_ffs ifconfig newfs newfs_msdos resize_ffs route sysctl
@


1.4
log
@A test for non-critical/low PR bin/42179.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.3 2011/05/03 06:13:06 jruoho Exp $
d8 1
a8 1
TESTS_SUBDIRS+=	fsck_ffs ifconfig newfs resize_ffs route
@


1.3
log
@Add a test for non-critical/low PR bin/43141.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.2 2011/03/06 17:08:41 bouyer Exp $
d8 1
a8 1
TESTS_SUBDIRS+=	fsck_ffs ifconfig newfs resize_ffs
@


1.2
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
@d1 1
a1 1
#	$NetBSD$
d8 1
a8 1
TESTS_SUBDIRS+=	fsck_ffs newfs resize_ffs
@


1.1
log
@Add some basic tests of resize_ffs(8).  The 'grow' test does nothing
more than create an empty file system, grow it, and makes sure fsck
finds the result clean.  The 'shrink' test does likewise for shrinking,
but is an expected failure at the moment due to PR bin/44177.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.5 2010/11/23 15:38:54 pooka Exp $
d8 1
a8 1
TESTS_SUBDIRS+=	resize_ffs
@


1.1.2.1
log
@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.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.1 2010/11/30 23:17:27 riz Exp $
d8 1
a8 1
TESTS_SUBDIRS+=	fsck_ffs newfs resize_ffs
@

