- 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:
behlendo
2008-04-04 17:08:12 +00:00
parent 968eccd1d1
commit 728b9dd800
3 changed files with 23 additions and 23 deletions
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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);