Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libpuffs st_blocks is in units of DEV_BSIZE, not st_blks...
details: https://anonhg.NetBSD.org/src/rev/0fd948463da7
branches: trunk
changeset: 762205:0fd948463da7
user: pooka <pooka%NetBSD.org@localhost>
date: Thu Feb 17 15:41:34 2011 +0000
description:
st_blocks is in units of DEV_BSIZE, not st_blksize.
from Derrik Pates
diffstat:
lib/libpuffs/subr.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r ec20b1cfdc25 -r 0fd948463da7 lib/libpuffs/subr.c
--- a/lib/libpuffs/subr.c Thu Feb 17 15:20:10 2011 +0000
+++ b/lib/libpuffs/subr.c Thu Feb 17 15:41:34 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: subr.c,v 1.25 2010/07/15 21:53:10 pooka Exp $ */
+/* $NetBSD: subr.c,v 1.26 2011/02/17 15:41:34 pooka Exp $ */
/*
* Copyright (c) 2006 Antti Kantee. All Rights Reserved.
@@ -27,7 +27,7 @@
#include <sys/cdefs.h>
#if !defined(lint)
-__RCSID("$NetBSD: subr.c,v 1.25 2010/07/15 21:53:10 pooka Exp $");
+__RCSID("$NetBSD: subr.c,v 1.26 2011/02/17 15:41:34 pooka Exp $");
#endif /* !lint */
#include <sys/types.h>
@@ -282,7 +282,7 @@
va->va_gen = sb->st_gen;
va->va_flags = sb->st_flags;
va->va_rdev = sb->st_rdev;
- va->va_bytes = sb->st_blocks * sb->st_blksize;
+ va->va_bytes = sb->st_blocks << DEV_BSHIFT;
va->va_filerev = 0;
va->va_vaflags = 0;
}
Home |
Main Index |
Thread Index |
Old Index