History log of /netbsd/tests/fs/vfs/t_ro.c (Results 1 – 8 of 8)
Revision Date Author Comments
# 777921ca 21-Sep-2019 kre <kre@NetBSD.org>

Initialise the sometvs array of struct timeval that is to be used to
validate that utimes() cannot update the times of a file on a read only
filesystem. The values are never actually used, but sinc

Initialise the sometvs array of struct timeval that is to be used to
validate that utimes() cannot update the times of a file on a read only
filesystem. The values are never actually used, but since
src/sys/kern/vfs_syscalls.c 1.535
they are validated for sanity, and the syscall returns EINVAL if the
values passed are invalid (tv_usec <0 or >= 1000000). If that happens
we don't get as far as the test which produces the EROFS that is expected
from this test (these tests - one for each filesystem type).

So, init the timeval structs (just to 0, the values will still not be
used) so that the EINVAL doesn't bite us before we're eaten by the EROFS
which is the way we're supposed to die.

If the syscall API args were labelled as "const" the compiler probably
would have caught the use of uninit'd vars and complained much sooner.

show more ...


# 418837ec 16-Jul-2019 martin <martin@NetBSD.org>

PR misc/54382: whenever open(2) is called with O_CREAT, make sure to
pass an open mode argument.


# 77102b8e 13-Jan-2017 christos <christos@NetBSD.org>

Don't play with "../.." in includes for h_macros.h; deal with it centrally.
Minor fixes.


# 209a214a 22-Feb-2011 yamt <yamt@NetBSD.org>

add some tests


# 56e72076 31-Jan-2011 njoly <njoly@NetBSD.org>

Now that PR/44302 is fixed, fs/vfs/t_ro:sysvbfs_rmfile should not fail
anymore.


# 01a1088a 07-Jan-2011 pooka <pooka@NetBSD.org>

expect correct errno in nfsro case. from yamt


# b4c2d471 31-Dec-2010 pooka <pooka@NetBSD.org>

fill in PR kern/44302


# bf2905a0 31-Dec-2010 pooka <pooka@NetBSD.org>

Add some elementary tests for r/o file systems. More in 2011!