Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/fs/puffs/h_dtfs return correct errno



details:   https://anonhg.NetBSD.org/src/rev/415dc7653e99
branches:  trunk
changeset: 757056:415dc7653e99
user:      pooka <pooka%NetBSD.org@localhost>
date:      Thu Aug 12 09:22:14 2010 +0000

description:
return correct errno

diffstat:

 tests/fs/puffs/h_dtfs/dtfs_vfsops.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (23 lines):

diff -r a2bf6cb7bd6e -r 415dc7653e99 tests/fs/puffs/h_dtfs/dtfs_vfsops.c
--- a/tests/fs/puffs/h_dtfs/dtfs_vfsops.c       Thu Aug 12 07:41:49 2010 +0000
+++ b/tests/fs/puffs/h_dtfs/dtfs_vfsops.c       Thu Aug 12 09:22:14 2010 +0000
@@ -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);



Home | Main Index | Thread Index | Old Index