Commit Graph

33 Commits

Author SHA1 Message Date
jmmv
7f4f9fe044 Check that both the kernel and mount_tmpfs handle extremely big numbers in
correctly in the max size parameter.
2005-09-26 09:50:53 +00:00
jmmv
b35a89f13c Sanity check negative values in the maximum size and number of nodes
arguments to avoid a crash while mounting a tmpfs file system.  Add a
regression test for this too.  Noticed by chs@.
2005-09-25 16:28:43 +00:00
jmmv
d83dd97e63 Make this test timezone-agnostic so that it works in different timezones.
Found by riz@.
2005-09-23 19:41:39 +00:00
jmmv
b0085cab71 Kill the tmpfs(9) manual page; it was just documenting internal details of
tmpfs' "API" and was already rotting.

Instead, merge all the relevant comments into the code.  This includes
acknowledgements to Google's Summer of Code 2005 program (they were in the
AUTHORS section of tmpfs(9) before), so all the files need to be changed
to include this sentence alongside the title.  (Note that this was not a
requirement of the program.)
2005-09-23 15:36:15 +00:00
jmmv
5d6f54160e Fix test after the changes to skip 0 and 1 node identifiers. 2005-09-23 14:11:15 +00:00
jmmv
2ddaf8b92b Nodes cannot use the '0' identifier or they will be skipped by readdir.
E.g., the root node's '.' and '..' directory entries did not appear in
a directory list, because the root node always holds the first id.
2005-09-13 21:30:52 +00:00
jmmv
8e0a777ab1 wiz@ remembers that the preferred way to spell file-system in NetBSD is
file system.
2005-09-10 22:28:57 +00:00
jmmv
c6a6458ca8 Lower the maximum number of vnodes while running this test. Otherwise,
it won't ever succeed with default values.
2005-09-10 19:39:18 +00:00
jmmv
ec93365612 Initial addition of tmpfs, an efficient memory file-system. This project
was developed as part of Google's Summer of Code 2005 program.  This
change adds the kernel code, the mount_tmpfs utility, a regression test
suite and does all other related changes to integrate these.

The file-system is still *experimental*.  Therefore, it is disabled by
default in all kernels.  However, as typically done, a commented-out
entry is added in them to ease its setup.

Note that I haven't commited the required mountd(8) changes to be able
to export tmpfs file-systems because NFS support is still very unstable
and because, before enabling it, I'd like to do some other changes.

OK'ed by my project mentor, William Studenmund (wrstuden@).
2005-09-10 19:20:48 +00:00
yamt
e55179f33a cast f_fileno to uint64_t to be more portable. 2005-08-20 05:25:16 +00:00
christos
d0fa934dc3 More fallout from ino_t 64 bit changes (from Kurt) 2005-08-19 12:47:10 +00:00
perseant
5d2f3e4908 Various minor LFS improvements:
* Extend the lfs library from fsck_lfs(8) so that it can be used with a
  not-yet-existent LFS.  Make newfs_lfs(8) use this library, so it can
  create LFSs whose Ifile is larger than one segment.
* Make newfs_lfs(8) use strsuftoi64() for its arguments, a la newfs(8).
* Make fsck_lfs(8) respect the "file system is clean" flag.
* Don't let fsck_lfs(8) think it has dirty blocks when invoked with the
  -n flag.
2005-02-26 05:45:54 +00:00
yamt
d9a63ae94a flush stdout before switching output to stderr. 2004-10-25 20:35:40 +00:00
yamt
a2e8d4b465 short results are not fatal. 2004-10-25 20:34:50 +00:00
yamt
9351f524bd redo the previous (rev.1.2) differently. use t modifier. 2004-10-07 10:29:46 +00:00
he
132a99257c Cast a pointer difference to int before printing with %x.
Should fix build problem for our LP64 ports.
2004-10-04 22:33:16 +00:00
yamt
fc9b8f9a4f test getdents(2). currently fail on nfs. 2004-10-03 12:35:15 +00:00
jmc
f648d12d47 Add missing NetBSD ID tags 2004-06-30 03:26:26 +00:00
lukem
f85d2d1c14 Use ${HOST_SH} instead of `sh'.
If necessary, pull in <bsd.sys.mk> to get the definition of HOST_SH;
Makefiles that pull in one of (most of) <bsd.*.mk> will get this anyway.
2003-10-26 07:25:33 +00:00
perseant
99afa7f9a5 Break out fsck function; add rename hard link test; change small files
test to provoke the cleaner into running as well.
2003-02-03 07:45:05 +00:00
perseant
4783b17664 Make the test a little less demanding (write 800k files instead of 1600k). 2003-01-29 05:39:41 +00:00
perseant
26c05673ea Regression test to ensure that (1) newfs_lfs and fsck_lfs agree about
what makes up a good filesystem; and that (2) the kernel and fsck_lfs
also agree.  This test, like the 9994 test and like the FFS endianness
test, is not included in the main "make regress".
2003-01-29 04:56:16 +00:00
lukem
08c81a9c2d some makefile de-linting
- list NOxxx and LDSTATIC= assignments before everything else
  (especially <bsd.own.mk>)
- ensure <bsd.own.mk> is included before NETBSDSRCDIR is used
- add missing RCSids
2002-09-18 05:41:35 +00:00
itojun
98b535ba4a don't install regress test programs 2002-08-18 14:59:32 +00:00
soren
642c31b4a3 Remove extraneous \n's in {err,warn}{,x}. 2002-08-09 10:01:53 +00:00
perseant
479f3c7ea7 Add regression tests section for LFS. First regression test is based on
IWAMOTO Toshihiro's test program submitted with PR #9994, modified to
perform the same operations on a control file, presumably held in a
known-working filesystem.  Test and control files are compared with "diff"
after the run (assuming that the kernel does not panic, which is really
the main point of the test).

Not included in the parent Makefile's list, as it requires the existence of
an LFS of some size.
2002-08-02 19:10:49 +00:00
tron
5108caf1d9 Use a local disktab instead of requiring "floppy288" to be in
"/etc/disktab" as suggested by Simon Burge.
2002-04-09 13:55:34 +00:00
tron
5381bcbfe7 Add a note that the kernel needs FFS Endian Independent support to perform
this test.
2002-04-09 12:32:02 +00:00
enami
3d82b33df5 Add rename(2) case. 2002-02-20 03:52:51 +00:00
thorpej
abcece08e4 Add a regression test for mkdir(2) and rmdir(2). 2002-01-27 21:49:46 +00:00
bouyer
f9b8e2d406 Note that this is derived from PR 6706 submitted by Brian Grayson. 1999-03-10 19:44:26 +00:00
bouyer
728bb9aad7 FFS regression tests: tests newfs, kernel, fsck_ffs and dump/restore. 1999-03-10 18:58:08 +00:00
bouyer
fe598d8469 Makefile for filesystem regression tests subdir. 1999-03-10 18:56:46 +00:00