mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-12 14:29:28 +00:00
Allow the block size used when booting over NFS to be overridden. It defaults
to 8192 bytes which is the size currently used.
This commit is contained in:
parent
b98d401185
commit
aea75fde62
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=179039
@ -351,6 +351,7 @@ ALTQ_PRIQ opt_altq.h
|
|||||||
ALTQ_NOPCC opt_altq.h
|
ALTQ_NOPCC opt_altq.h
|
||||||
ALTQ_DEBUG opt_altq.h
|
ALTQ_DEBUG opt_altq.h
|
||||||
BOOTP opt_bootp.h
|
BOOTP opt_bootp.h
|
||||||
|
BOOTP_BLOCKSIZE opt_bootp.h
|
||||||
BOOTP_COMPAT opt_bootp.h
|
BOOTP_COMPAT opt_bootp.h
|
||||||
BOOTP_NFSROOT opt_bootp.h
|
BOOTP_NFSROOT opt_bootp.h
|
||||||
BOOTP_NFSV3 opt_bootp.h
|
BOOTP_NFSV3 opt_bootp.h
|
||||||
|
@ -209,6 +209,11 @@ struct bootpc_globalcontext {
|
|||||||
#define DHCP_REQUEST 3
|
#define DHCP_REQUEST 3
|
||||||
#define DHCP_ACK 5
|
#define DHCP_ACK 5
|
||||||
|
|
||||||
|
/* NFS read/write block size */
|
||||||
|
#ifndef BOOTP_BLOCKSIZE
|
||||||
|
#define BOOTP_BLOCKSIZE 8192
|
||||||
|
#endif
|
||||||
|
|
||||||
static char bootp_cookie[128];
|
static char bootp_cookie[128];
|
||||||
SYSCTL_STRING(_kern, OID_AUTO, bootp_cookie, CTLFLAG_RD,
|
SYSCTL_STRING(_kern, OID_AUTO, bootp_cookie, CTLFLAG_RD,
|
||||||
bootp_cookie, 0, "Cookie (T134) supplied by bootp server");
|
bootp_cookie, 0, "Cookie (T134) supplied by bootp server");
|
||||||
@ -1234,8 +1239,8 @@ static void
|
|||||||
mountopts(struct nfs_args *args, char *p)
|
mountopts(struct nfs_args *args, char *p)
|
||||||
{
|
{
|
||||||
args->version = NFS_ARGSVERSION;
|
args->version = NFS_ARGSVERSION;
|
||||||
args->rsize = 8192;
|
args->rsize = BOOTP_BLOCKSIZE;
|
||||||
args->wsize = 8192;
|
args->wsize = BOOTP_BLOCKSIZE;
|
||||||
args->flags = NFSMNT_RSIZE | NFSMNT_WSIZE | NFSMNT_RESVPORT;
|
args->flags = NFSMNT_RSIZE | NFSMNT_WSIZE | NFSMNT_RESVPORT;
|
||||||
args->sotype = SOCK_DGRAM;
|
args->sotype = SOCK_DGRAM;
|
||||||
if (p != NULL)
|
if (p != NULL)
|
||||||
|
Loading…
Reference in New Issue
Block a user