Module Name: src Committed By: reinoud Date: Thu Jun 18 15:15:10 UTC 2009
Modified Files: src/sys/fs/udf: udf_vnops.c Log Message: Pass-on credentials to size reversal on aborted write due to error. It could be that in the future this credentials need to be changed to allways-allow since its an reverting-on-error behaviour. To generate a diff of this commit: cvs rdiff -u -r1.41 -r1.42 src/sys/fs/udf/udf_vnops.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/fs/udf/udf_vnops.c diff -u src/sys/fs/udf/udf_vnops.c:1.41 src/sys/fs/udf/udf_vnops.c:1.42 --- src/sys/fs/udf/udf_vnops.c:1.41 Thu May 7 19:30:30 2009 +++ src/sys/fs/udf/udf_vnops.c Thu Jun 18 15:15:10 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: udf_vnops.c,v 1.41 2009/05/07 19:30:30 elad Exp $ */ +/* $NetBSD: udf_vnops.c,v 1.42 2009/06/18 15:15:10 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.41 2009/05/07 19:30:30 elad Exp $"); +__KERNEL_RCSID(0, "$NetBSD: udf_vnops.c,v 1.42 2009/06/18 15:15:10 reinoud Exp $"); #endif /* not lint */ @@ -383,7 +383,7 @@ if (error) { /* bring back file size to its former size */ /* take notice of its errors? */ - (void) udf_chsize(vp, (u_quad_t) old_size, NOCRED); + (void) udf_chsize(vp, (u_quad_t) old_size, cred); /* roll back uio */ uio->uio_offset -= resid - uio->uio_resid; @@ -2155,7 +2155,6 @@ /* --------------------------------------------------------------------- */ - /* Global vfs vnode data structures for udfs */ int (**udf_vnodeop_p)(void *);