Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/fs/udf Small cleanup
details: https://anonhg.NetBSD.org/src/rev/0e2d7ad22649
branches: trunk
changeset: 787892:0e2d7ad22649
user: reinoud <reinoud%NetBSD.org@localhost>
date: Thu Jul 11 15:43:12 2013 +0000
description:
Small cleanup
diffstat:
sys/fs/udf/udf_rename.c | 12 +++---------
1 files changed, 3 insertions(+), 9 deletions(-)
diffs (50 lines):
diff -r 13ee5d01d7fa -r 0e2d7ad22649 sys/fs/udf/udf_rename.c
--- a/sys/fs/udf/udf_rename.c Thu Jul 11 13:44:50 2013 +0000
+++ b/sys/fs/udf/udf_rename.c Thu Jul 11 15:43:12 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: udf_rename.c,v 1.2 2013/07/10 19:14:07 reinoud Exp $ */
+/* $NetBSD: udf_rename.c,v 1.3 2013/07/11 15:43:12 reinoud Exp $ */
/*
* Copyright (c) 2013 Reinoud Zandijk
@@ -28,7 +28,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: udf_rename.c,v 1.2 2013/07/10 19:14:07 reinoud Exp $");
+__KERNEL_RCSID(0, "$NetBSD: udf_rename.c,v 1.3 2013/07/11 15:43:12 reinoud Exp $");
#include <sys/param.h>
#include <sys/errno.h>
@@ -84,12 +84,10 @@
struct vnode *tdvp, struct componentname *tcnp,
kauth_cred_t cred, bool posixly_correct)
{
- struct dirent fdirent, tdirent; /* XXX OK? XXX */
-
DPRINTF(CALL, ("udf_sane_rename '%s' -> '%s'\n",
fcnp->cn_nameptr, tcnp->cn_nameptr));
return genfs_sane_rename(&udf_genfs_rename_ops,
- fdvp, fcnp, &fdirent, tdvp, tcnp, &tdirent,
+ fdvp, fcnp, NULL, tdvp, tcnp, NULL,
cred, posixly_correct);
}
@@ -184,8 +182,6 @@
KASSERT((tvp == NULL) || (VOP_ISLOCKED(tvp) == LK_EXCLUSIVE));
DPRINTF(CALL, ("udf_gro_rename_check_possible called\n"));
- if (mp->mnt_flag & MNT_RDONLY)
- return EROFS;
/* flags not implemented since they are not defined (yet) in UDF */
return 0;
@@ -273,8 +269,6 @@
KASSERT(VOP_ISLOCKED(vp) == LK_EXCLUSIVE);
DPRINTF(CALL, ("udf_gro_remove_check_possible called\n"));
- if (mp->mnt_flag & MNT_RDONLY)
- return EROFS;
/* flags not implemented since they are not defined (yet) in UDF */
return 0;
Home |
Main Index |
Thread Index |
Old Index