mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-23 02:44:41 +03:00
- Fix write-only behavior in vn-open()
- Ensure we have at least 1 write-only splat test - Fix return codes for vn_* Solaris does not use negative return codes in the kernel. So linux errno's must be inverted. git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@67 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c
This commit is contained in:
@@ -95,8 +95,8 @@ splat_atomic_work(void *priv)
|
||||
(long unsigned)ap->ap_atomic,
|
||||
(long unsigned)ap->ap_atomic_exited);
|
||||
|
||||
thread_exit();
|
||||
wake_up(&ap->ap_waitq);
|
||||
thread_exit();
|
||||
}
|
||||
|
||||
static int
|
||||
|
||||
@@ -287,7 +287,7 @@ splat_vnode_test6(struct file *file, void *arg)
|
||||
int rc;
|
||||
|
||||
if ((rc = vn_open(SPLAT_VNODE_TEST_FILE_RW, UIO_SYSSPACE,
|
||||
FWRITE | FREAD | FCREAT | FEXCL, 0644, &vp, 0, 0))) {
|
||||
FWRITE | FCREAT | FEXCL, 0644, &vp, 0, 0))) {
|
||||
splat_vprint(file, SPLAT_VNODE_TEST6_NAME,
|
||||
"Failed to vn_open test file: %s (%d)\n",
|
||||
SPLAT_VNODE_TEST_FILE_RW, rc);
|
||||
|
||||
Reference in New Issue
Block a user