Source-Changes-HG archive

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

[src/trunk]: src/sys/fs/udf Explicitly delete the failing node; it would be k...



details:   https://anonhg.NetBSD.org/src/rev/146beaa0be63
branches:  trunk
changeset: 804871:146beaa0be63
user:      reinoud <reinoud%NetBSD.org@localhost>
date:      Wed Dec 03 21:37:55 2014 +0000

description:
Explicitly delete the failing node; it would be killed with the unlink too but
explicitly deleting it is better than just setting the file size to zero.

diffstat:

 sys/fs/udf/udf_vnops.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 7e9fff896401 -r 146beaa0be63 sys/fs/udf/udf_vnops.c
--- a/sys/fs/udf/udf_vnops.c    Wed Dec 03 21:34:55 2014 +0000
+++ b/sys/fs/udf/udf_vnops.c    Wed Dec 03 21:37:55 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: udf_vnops.c,v 1.94 2014/07/29 15:48:22 reinoud Exp $ */
+/* $NetBSD: udf_vnops.c,v 1.95 2014/12/03 21:37:55 reinoud Exp $ */
 
 /*
  * Copyright (c) 2006, 2008 Reinoud Zandijk
@@ -32,7 +32,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__KERNEL_RCSID(0, "$NetBSD: udf_vnops.c,v 1.94 2014/07/29 15:48:22 reinoud Exp $");
+__KERNEL_RCSID(0, "$NetBSD: udf_vnops.c,v 1.95 2014/12/03 21:37:55 reinoud Exp $");
 #endif /* not lint */
 
 
@@ -1740,8 +1740,8 @@
                error = udf_do_symlink(udf_node, ap->a_target);
                if (error) {
                        /* remove node */
-                       udf_shrink_node(udf_node, 0);
                        udf_dir_detach(udf_node->ump, dir_node, udf_node, cnp);
+                       udf_delete_node(udf_node);
                }
        }
        return error;



Home | Main Index | Thread Index | Old Index