summaryrefslogtreecommitdiff
path: root/sys/nfs/nfsdiskless.h
diff options
context:
space:
mode:
authorFederico G. Schwindt <fgsch@cvs.openbsd.org>2013-09-20 23:51:45 +0000
committerFederico G. Schwindt <fgsch@cvs.openbsd.org>2013-09-20 23:51:45 +0000
commit73c84df03670a6c61322c047b414c24cd154957b (patch)
tree581b8cf14dedc884df705055b8c8c99b171bf14a /sys/nfs/nfsdiskless.h
parent34b536d0e8c8fe020c04ed923f62b0ff6c1f69c0 (diff)
Add support for root on nfs using v3. Code adapted from NetBSD.
Tested on sparc by miod, octeon by aalm and armv7 by me. miod ok.
Diffstat (limited to 'sys/nfs/nfsdiskless.h')
-rw-r--r--sys/nfs/nfsdiskless.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/nfs/nfsdiskless.h b/sys/nfs/nfsdiskless.h
index 762ec2c6717..f379f26aa6e 100644
--- a/sys/nfs/nfsdiskless.h
+++ b/sys/nfs/nfsdiskless.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: nfsdiskless.h,v 1.9 2013/04/17 16:22:24 florian Exp $ */
+/* $OpenBSD: nfsdiskless.h,v 1.10 2013/09/20 23:51:44 fgsch Exp $ */
/* $NetBSD: nfsdiskless.h,v 1.9 1996/02/18 11:54:00 fvdl Exp $ */
/*
@@ -50,9 +50,10 @@
* client/server byte ordering differences.
*/
struct nfs_dlmount {
+ struct nfs_args ndm_args;
struct sockaddr_in ndm_saddr; /* Address of file server */
char ndm_host[MNAMELEN]; /* Host name for mount pt */
- u_char ndm_fh[NFSX_V2FH]; /* The file's file handle */
+ u_char ndm_fh[NFSX_V3FHMAX]; /* The file's file handle */
};
struct nfs_diskless {
struct sockaddr_in nd_boot; /* Address of boot server */