Commit Graph

269 Commits

Author SHA1 Message Date
martin 4b70f3655f Use /dev/MAKEDEV to create devices - instead of hardcoding i386 majors. 2006-03-26 20:27:52 +00:00
jmmv 0eee8b4ede Decrement the size value passed to test-mount by one unit so that it fits
in a 64-bit signed integer (thus ensuring that mount_tmpfs handles these
correctly).

Also check that the previous (big) value fails.

This makes this test behave correctly on all platforms (not only 64-bit
ones) after the fix commited to mount_tmpfs.
2006-03-26 16:19:04 +00:00
pavel 02a38a5320 Regression test for reads past the end of a packet (out of bounds reads).
Those should abort the bpf program.

The test currently fails (out of bound reads silently return zeros), but
succeeds if lo0 is replaced by an Ethernet interface and 127.0.0.1 by an
address reachable through it.

A fix is being worked on.

Approved by martin.
2006-03-24 13:54:58 +00:00
martin a090457a0b Ensure proper buffer alignement. OK'd by yamt. 2006-03-20 08:57:37 +00:00
jmmv 5f4c11af49 WARNS=4
One of the changes fixes Coverity CID 2468 (use of uninitialized error
variable in main).
2006-03-18 17:09:35 +00:00
rpaulo 9c7380b5d3 Moved to interface/interface.c 2005-12-25 22:24:57 +00:00
rpaulo 31e9b918de Change ioctls.c to interface/interface.c to accomodate further
addition of regressions tests.
2005-12-25 22:07:01 +00:00
perry 8a331c8f36 __asm__ -> __asm, __volatile__ -> volatile 2005-12-24 21:43:51 +00:00
perry 0be44b35dc Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete. 2005-12-24 21:22:46 +00:00
rpaulo cf7672baed Descend into posix_fadvise/ 2005-12-19 17:50:02 +00:00
rpaulo 9c3930a81d Descend into net/. 2005-12-14 23:56:45 +00:00
rpaulo 5233f18e7f Add a simple program to test bpf ioctls. A more comprehensive test for
bpf filters will follow up shortly.
2005-12-14 23:55:02 +00:00
yamt f3d3b4af4f test posix_fadvise. 2005-11-22 12:18:43 +00:00
jmmv 456d1fea79 Check that symlinks to directories work as expected. 2005-10-03 19:38:57 +00:00
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
lukem 7f4d732106 appease gcc -Wuninitialized 2005-06-02 11:10:00 +00:00
martti 58b8abcbf8 Upgraded IPFilter to 4.1.8 2005-04-03 15:05:30 +00:00
martti c775aec128 Import IPFilter 4.1.8 2005-04-03 15:01:04 +00:00
bouyer e9e4c49142 Add a test for the bug fixed in subr_extent.c rev 1.51. 2005-03-15 18:27:23 +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
martti 460bbcc960 Upgraded IPFilter to 4.1.6 2005-02-19 21:30:24 +00:00
martti 76b5d9e30f Import IPFilter 4.1.6 2005-02-19 21:26:02 +00:00
martti a023cb1d19 Upgraded IPFilter to 4.1.5 2005-02-08 07:01:52 +00:00
martti 4d6a62d250 Import IPFilter 4.1.5 2005-02-08 06:52:59 +00:00
perry dd334ae584 de-__P, remove obsolete "register" declarations. 2005-02-06 06:05:18 +00:00
martti 52e16f3d20 Use correct checksum (approved by darrenr). 2005-01-06 12:20:35 +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
martti 7ff15b917f Upgraded IPFilter to 4.1.3 2004-07-23 05:39:03 +00:00
martti 9e82a8bf0d Import IPFilter 4.1.3 2004-07-23 05:33:55 +00:00
yamt 6d5c6db5cf a test for kern_sa.c rev.1.52. 2004-07-06 12:28:20 +00:00
jmc f648d12d47 Add missing NetBSD ID tags 2004-06-30 03:26:26 +00:00
martti 621e9bac7f Sync with official IPFilter 2004-03-28 09:01:26 +00:00
martti ad9b29ed97 Import IPFilter 4.1.1 2004-03-28 08:55:20 +00:00
thorpej 1cda93b426 Use the new RAS_*() macros. 2004-03-03 21:06:07 +00:00
yamt 6c726a105b tweak a test to detect a bug described in kern/24595 from Stephan Uphoff. 2004-03-02 10:13:13 +00:00
drochner 40bcd2aa76 MACHINE_ARCH is x86_64 for amd64; noticed by Nicolas Joly 2004-02-19 18:25:56 +00:00