Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/ufs/lfs fix assertion checking that bufrd function is us...
details: https://anonhg.NetBSD.org/src/rev/d4c3a4f9d602
branches: trunk
changeset: 341803:d4c3a4f9d602
user: mlelstv <mlelstv%NetBSD.org@localhost>
date: Mon Nov 23 08:00:45 2015 +0000
description:
fix assertion checking that bufrd function is used only for large symlinks
that aren't embedded in the inode.
diffstat:
sys/ufs/lfs/ulfs_readwrite.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r c76486b9f835 -r d4c3a4f9d602 sys/ufs/lfs/ulfs_readwrite.c
--- a/sys/ufs/lfs/ulfs_readwrite.c Mon Nov 23 00:47:43 2015 +0000
+++ b/sys/ufs/lfs/ulfs_readwrite.c Mon Nov 23 08:00:45 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ulfs_readwrite.c,v 1.19 2015/07/24 06:59:32 dholland Exp $ */
+/* $NetBSD: ulfs_readwrite.c,v 1.20 2015/11/23 08:00:45 mlelstv Exp $ */
/* from NetBSD: ufs_readwrite.c,v 1.105 2013/01/22 09:39:18 dholland Exp */
/*-
@@ -33,7 +33,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(1, "$NetBSD: ulfs_readwrite.c,v 1.19 2015/07/24 06:59:32 dholland Exp $");
+__KERNEL_RCSID(1, "$NetBSD: ulfs_readwrite.c,v 1.20 2015/11/23 08:00:45 mlelstv Exp $");
#ifdef LFS_READWRITE
#define FS struct lfs
@@ -159,7 +159,7 @@
fs = ip->I_FS;
error = 0;
- KASSERT(vp->v_type != VLNK || ip->i_size < fs->um_maxsymlinklen);
+ KASSERT(vp->v_type != VLNK || ip->i_size >= fs->um_maxsymlinklen);
KASSERT(vp->v_type != VLNK || fs->um_maxsymlinklen != 0 ||
DIP(ip, blocks) == 0);
KASSERT(vp->v_type != VREG || vp == fs->lfs_ivnode);
Home |
Main Index |
Thread Index |
Old Index