Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/nfs Don't pretend that files are limited to 1TB on NFSv3.
details: https://anonhg.NetBSD.org/src/rev/b7c8b5e5fa0a
branches: trunk
changeset: 379660:b7c8b5e5fa0a
user: mlelstv <mlelstv%NetBSD.org@localhost>
date: Sun Jun 13 10:25:11 2021 +0000
description:
Don't pretend that files are limited to 1TB on NFSv3.
diffstat:
sys/nfs/nfs_vfsops.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diffs (28 lines):
diff -r ceeec078f7cf -r b7c8b5e5fa0a sys/nfs/nfs_vfsops.c
--- a/sys/nfs/nfs_vfsops.c Sun Jun 13 10:14:40 2021 +0000
+++ b/sys/nfs/nfs_vfsops.c Sun Jun 13 10:25:11 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: nfs_vfsops.c,v 1.242 2021/04/02 03:07:54 christos Exp $ */
+/* $NetBSD: nfs_vfsops.c,v 1.243 2021/06/13 10:25:11 mlelstv Exp $ */
/*
* Copyright (c) 1989, 1993, 1995
@@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nfs_vfsops.c,v 1.242 2021/04/02 03:07:54 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nfs_vfsops.c,v 1.243 2021/06/13 10:25:11 mlelstv Exp $");
#if defined(_KERNEL_OPT)
#include "opt_nfs.h"
@@ -296,8 +296,7 @@ nfs_fsinfo(struct nfsmount *nmp, struct
if (nmp->nm_readdirsize == 0)
nmp->nm_readdirsize = xmax;
}
- /* XXX */
- nmp->nm_maxfilesize = (u_int64_t)0x80000000 * DEV_BSIZE - 1;
+ nmp->nm_maxfilesize = 0xffffffffffffffffull;
maxfsize = fxdr_hyper(&fsp->fs_maxfilesize);
if (maxfsize > 0 && maxfsize < nmp->nm_maxfilesize)
nmp->nm_maxfilesize = maxfsize;
Home |
Main Index |
Thread Index |
Old Index