PR/34589: Cliff Wright: vnd(4) compress error with large files
Applied slightly different patch (u_int64_t -> uint64_t), thanks!
This commit is contained in:
parent
acd3797c82
commit
af7d9594a4
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: vnd.c,v 1.150 2006/09/03 19:49:34 bouyer Exp $ */
|
||||
/* $NetBSD: vnd.c,v 1.151 2006/09/23 00:53:46 elad Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
|
||||
|
@ -133,7 +133,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: vnd.c,v 1.150 2006/09/03 19:49:34 bouyer Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: vnd.c,v 1.151 2006/09/23 00:53:46 elad Exp $");
|
||||
|
||||
#if defined(_KERNEL_OPT)
|
||||
#include "fs_nfs.h"
|
||||
|
@ -919,7 +919,8 @@ vndioctl(dev_t dev, u_long cmd, caddr_t data, int flag, struct lwp *l)
|
|||
|
||||
/* set decompressed file size */
|
||||
vattr.va_size =
|
||||
(vnd->sc_comp_numoffs - 1) * vnd->sc_comp_blksz;
|
||||
((uint64_t)vnd->sc_comp_numoffs - 1) *
|
||||
(uint64_t)vnd->sc_comp_blksz;
|
||||
|
||||
/* allocate space for all the compressed offsets */
|
||||
vnd->sc_comp_offsets =
|
||||
|
|
Loading…
Reference in New Issue