Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/fs/v7fs When filesize is zero, correctly return V7FS_ITE...
details: https://anonhg.NetBSD.org/src/rev/64104ed9258e
branches: trunk
changeset: 767250:64104ed9258e
user: uch <uch%NetBSD.org@localhost>
date: Wed Jul 13 12:18:22 2011 +0000
description:
When filesize is zero, correctly return V7FS_ITERATOR_END
diffstat:
sys/fs/v7fs/v7fs_datablock.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r fe54e676e8f5 -r 64104ed9258e sys/fs/v7fs/v7fs_datablock.c
--- a/sys/fs/v7fs/v7fs_datablock.c Wed Jul 13 11:17:03 2011 +0000
+++ b/sys/fs/v7fs/v7fs_datablock.c Wed Jul 13 12:18:22 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: v7fs_datablock.c,v 1.1 2011/06/27 11:52:24 uch Exp $ */
+/* $NetBSD: v7fs_datablock.c,v 1.2 2011/07/13 12:18:22 uch Exp $ */
/*-
* Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: v7fs_datablock.c,v 1.1 2011/06/27 11:52:24 uch Exp $");
+__KERNEL_RCSID(0, "$NetBSD: v7fs_datablock.c,v 1.2 2011/07/13 12:18:22 uch Exp $");
#if defined _KERNEL_OPT
#include "opt_v7fs.h"
#endif
@@ -262,7 +262,7 @@
int ret;
if (!(filesize = v7fs_inode_filesize(p)))
- return 0;
+ return V7FS_ITERATOR_END;
#ifdef V7FS_DATABLOCK_DEBUG
size_t sz = filesize;
#endif
Home |
Main Index |
Thread Index |
Old Index