Commit Graph

152 Commits

Author SHA1 Message Date
gson 79350377d6 Don't use a filename with an embedded newline in the create_many test
case.  Instead, add a separate test case "create_nonalphanum" for
filenames containing non-alphanumeric characters.  The bug of
PR kern/50608 now causes a failure in create_nonalphanum rather than
create_many.
2016-01-14 08:58:02 +00:00
pooka 8b742e7a22 create_many: remove PR kern/50607 xfail
Seems to have been fixed by ext2fs_lookup.c 1.79
(thanks, riastradh)
2016-01-13 12:05:49 +00:00
pooka 419929ef27 create_many:
* add xfails for ext2 and udf
  * don't try to create a subdirectory for sysvbfs
2016-01-02 12:11:30 +00:00
pooka 10c4a4e077 use a shorter filename template in previous (for v7fs) 2016-01-01 15:18:39 +00:00
pooka 596d7c2283 Add a test which creates many directory entries. 2016-01-01 15:13:57 +00:00
riastradh 03d306e2dd Apparently I fixed t_unpriv:zfs_owner and didn't notice. 2015-04-09 19:51:13 +00:00
riastradh 3d61be1880 Advisory locking for zfs. 2015-04-09 19:47:05 +00:00
riastradh bc95daf1f6 Fix vattr_init_mask: mode is mode_t, not u_short.
Fixes fs/vfs/t_vnops:zfs_attrs test.
2015-04-09 05:32:53 +00:00
riastradh d0319a8396 Tests claim rename(..., "x/.") yields EISDIR, so do that. Fixes zfs. 2015-04-09 05:03:58 +00:00
riastradh 8aa34a7d8b Fix return code of rmdir(nonempty) in zfs: ENOTEMPTY, not EEXIST. 2015-04-09 05:02:28 +00:00
riastradh a26f29c67f Fix remaining read(fd, NULL, 1) cases. 2015-04-04 12:34:44 +00:00
riastradh a9b674d150 Let I/O errors override inode update errors in UFS.
Fixes tests/fs/vfs/t_io:read_fault for UFS.
2015-03-28 17:45:47 +00:00
riastradh 7fc64193c5 This doesn't affect p2k_ffs after all, no idea why yet. 2015-03-28 16:39:31 +00:00
riastradh 9707ebf68d Test that read fails with EFAULT even if O_SYNC|O_RSYNC are set. 2015-03-28 16:17:25 +00:00
riastradh 8c0065db93 Make this run in NetBSD 6 by using st_mtimespec instead of st_mtim.
st_mtimespec is our traditional nonstandard name for what POSIX
called st_mtim in 2008, but these aren't going to run in non-NetBSD
anyway so using the nonstandard name shouldn't be an issue.
2015-03-24 23:24:55 +00:00
pooka 0397f3a735 Move sysproxy support into a separate component, rumpkern_sysproxy,
instead of it being always provided by the rump kernel base.  This
move accomplishes two things:

1) it is no longer necessary to provide sysproxy hypercall stubs for
   platforms which do not want to use sysproxy
2) it is easier to reason about the security aspects, since configurations
   not linking the sysproxy component simply do not support remote
   system calls

discussed on rumpkernel-users
2015-01-07 22:24:03 +00:00
hannken 08aa9f9f06 Test v7fs_lstat_symlink is no longer expected to fail. 2014-12-29 15:31:44 +00:00
gson 76c3358a67 Mark v7fs_lstat_symlink as an expected failure, referencing PR kern/48864. 2014-09-09 06:51:00 +00:00
gson dec58dec7c Add a test of symlinks with long targets. 2014-09-07 09:10:09 +00:00
gson 1beb02a6c3 Don't pass an uninitialized variable as the times[] argument of
rump_sys_utimes().  Instead, pass combinations of values representing
edge cases: the farthest possible past, the epoch, and the farthest
possible future.  Now the excessive runtime reported in PR bin/49144
occurs reliably, on multiple architectures, and not only with udf, but
also with msdosfs.
2014-08-29 17:39:18 +00:00
gson 9f88f3f33c Mark udf_lookup_complex as an expected failure, referencing PR kern/49033.
Since it does not fail reliably, force it to fail to avoid spurious failure
reports due to unexpected success.
2014-08-12 12:13:09 +00:00
gson b6f40f55e0 Mark the udf_renamerace test case (but not udf_renamerace_dirs) as an
expected failure again, now with a reference to PR kern/49046.
Since the test only fails part of the time, force failure to
avoid failure reports reports due to unexpected success.
2014-07-29 09:15:48 +00:00
pgoyette fa995b7822 Remove atf_tc_expect_fail() calls for udf file-system. These tests are
currently passing.  As discussed on current-users.  Any new failures
should be reported via send-pr.
2014-07-25 13:44:59 +00:00
martin dbd2e87e49 PR kern/49033: try to provide better diagnostics if the udf_lookup_complex
test randomly fails.
2014-07-25 12:16:22 +00:00
njoly 954ca52517 Add testcase that check lstat(2) values for symbolic links (PR
kern/48864).
2014-06-03 11:56:07 +00:00
hannken 9cd2f4b930 Operation sysvbfs_remove() destructs inodes attached to active vnodes.
Defer the destruction to sysvbfs_reclaim().

Disable test t_renamerace:sysvbfs_renamerace as it will exhaust the
inode table (sysvbfs has space for 8 inodes only).

Ok: Izumi Tsutsui <tsutsui@netbsd.org>
2014-01-09 13:23:57 +00:00
christos d56fcfc956 fix unused variable warnings 2013-10-19 17:45:00 +00:00
pooka 40df3663d1 tests for i/o-after-unlink 2013-08-04 11:02:02 +00:00
njoly 1fe37e8eed Check that rename(2) with NULL arguments fail with EFAULT. 2013-07-28 09:03:43 +00:00
reinoud ef76be89bb Update test cases for UDF now udf_rename() uses the genfs_rename framework 2013-07-10 18:55:00 +00:00
reinoud f3954b9d18 Cover the last failing UDF test cases with a reference to PR kern/47986, i.e.
all rename's fail until UDF switches over to the new rename framework solving
the locking mechanism.
2013-07-08 06:44:51 +00:00
reinoud cb0bc59d6c Add the rumpfs_udf to the LDADD variable 2013-06-28 13:04:06 +00:00
pooka 16eee2303a Fix the test for rumpfs on amd64 by adding a creation mode to open().
thanks to gson for the prod.
2013-06-12 12:08:08 +00:00
jmmv 2f611e9f98 Fix the t_renamerace:lfs_renamerace_dirs test on fast machines.
This test was failing on my machine when run natively but not causing any
problems when run within qemu, and the failure was "mkdir: No space left
on device".

My understanding of the issue is that this test overflowed the temporary
disk image due to its high rate of file churn and the lfs_cleanerd not
being able to keep up.  Note that this test is capped by time, not number
of operations, so this is why the problem does not show up in a slow
emulated system.

To fix this, just bump the test file system image limit a little bit.
(I tried increasing the frequency at which lfs_cleanerd does its thing,
but it wasn't enough.)
2013-03-17 02:48:31 +00:00
jmmv a8e674a6ba Mark a bunch of routinely-broken ZFS tests as expected failures. Point
them at PR kern/47656.
2013-03-16 05:45:37 +00:00
pooka ebca36f90a Hook ZFS tests to MKZFS instead of a homegrown variable. 2012-08-31 14:46:53 +00:00
pooka 88392d44db Add a vfstest zfs attachment. This is a compile-time option,
default off, due the large numbers of failing tests (some of them
look like quite trivial failures).
2012-08-20 16:37:35 +00:00
riastradh 35d57656cd Adjust t_renamerace now that ext2fs and ffs have good rename. 2012-05-09 00:22:26 +00:00
njoly 7e04109e7f New testcase that check file flags with unprivileged credentials. 2012-04-04 18:53:34 +00:00
njoly 22d3abd7be Now that permissions for msdos have been fixed, kill times() special
case which was wrong.
2012-03-26 15:13:20 +00:00
njoly 16fc5c7678 Extend times testcase to check for non null time values too. 2012-03-23 09:58:23 +00:00
njoly 299c989a28 Remove unneeded atf_tc_expect_pass calls. 2012-03-20 18:20:49 +00:00
jruoho 128cf91305 Remove xfail. 2012-03-20 05:21:45 +00:00
pgoyette 0f64aba0db Finish removing the block of commented-out code from rev 1.31
Hello, christos!
2012-03-19 03:33:54 +00:00
christos 59c51f5cec annotate fixed failures as comments. 2012-03-18 21:49:08 +00:00
njoly a3a0bab7f9 Add another testcase that check setting file times with unprivileged
credentials.
2012-03-15 12:57:27 +00:00
perseant ed08fe6512 Pass t_renamerace and t_rmdirrace tests.
Adapt dholland@'s fix to ufs_rename to fix PR kern/43582.  Address several
other MP locking issues discovered during the course of investigating the
same problem.

Removed extraneous vn_lock() calls on the Ifile, since the Ifile writes
are controlled by the segment lock.

Fix PR kern/45982 by deemphasizing the estimate of how much metadata
will fill the empty space on disk when the disk is nearly empty
(t_renamerace crates a lot of inode blocks on a tiny empty disk).
2012-02-16 02:47:54 +00:00
njoly c4210b25ef Add a testcase which checks that directory permissions are honored for
file creation/deletion with unprivileged credentials.

releng ok.
2012-02-09 18:31:03 +00:00
njoly dcea8cfc3c owner testcase now succeed with rumpfs. 2012-01-31 19:02:49 +00:00
njoly 24d0234070 unpriv owner test now pass for sysvbfs. 2012-01-27 21:53:50 +00:00