Module Name:    src
Committed By:   pooka
Date:           Thu Aug 12 09:22:15 UTC 2010

Modified Files:
        src/tests/fs/puffs/h_dtfs: dtfs_vfsops.c

Log Message:
return correct errno


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/tests/fs/puffs/h_dtfs/dtfs_vfsops.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/tests/fs/puffs/h_dtfs/dtfs_vfsops.c
diff -u src/tests/fs/puffs/h_dtfs/dtfs_vfsops.c:1.1 src/tests/fs/puffs/h_dtfs/dtfs_vfsops.c:1.2
--- src/tests/fs/puffs/h_dtfs/dtfs_vfsops.c:1.1	Tue Jul  6 14:16:44 2010
+++ src/tests/fs/puffs/h_dtfs/dtfs_vfsops.c	Thu Aug 12 09:22:14 2010
@@ -1,4 +1,4 @@
-/*	$NetBSD: dtfs_vfsops.c,v 1.1 2010/07/06 14:16:44 pooka Exp $	*/
+/*	$NetBSD: dtfs_vfsops.c,v 1.2 2010/08/12 09:22:14 pooka Exp $	*/
 
 /*
  * Copyright (c) 2006  Antti Kantee.  All Rights Reserved.
@@ -248,11 +248,11 @@
 
 	pn = puffs_pn_nodewalk(pu, addrcmp, dfid->dfid_addr);
 	if (pn == NULL)
-		return EINVAL;
+		return ESTALE;
 
 	if (pn->pn_va.va_fileid != dfid->dfid_fileid
 	    || pn->pn_va.va_gen != dfid->dfid_gen)
-		return EINVAL;
+		return ESTALE;
 	
 	puffs_newinfo_setcookie(pni, pn);
 	puffs_newinfo_setvtype(pni, pn->pn_va.va_type);

Reply via email to