From owner-freebsd-current@FreeBSD.ORG Thu Aug 22 13:33:21 2013 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 233821A3 for ; Thu, 22 Aug 2013 13:33:21 +0000 (UTC) (envelope-from slw@zxy.spb.ru) Received: from zxy.spb.ru (zxy.spb.ru [195.70.199.98]) by mx1.freebsd.org (Postfix) with ESMTP id DBC1F2D4A for ; Thu, 22 Aug 2013 13:33:20 +0000 (UTC) Received: from slw by zxy.spb.ru with local (Exim 4.69 (FreeBSD)) (envelope-from ) id 1VCV2m-000Jrl-Gy for current@freebsd.org; Thu, 22 Aug 2013 17:35:20 +0400 Date: Thu, 22 Aug 2013 17:35:20 +0400 From: Slawa Olhovchenkov To: current@freebsd.org Subject: Diskless setup with NFS_V4 Message-ID: <20130822133520.GA75880@zxy.spb.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: slw@zxy.spb.ru X-SA-Exim-Scanned: No (on zxy.spb.ru); SAEximRunCond expanded to false X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Aug 2013 13:33:21 -0000 Its posible use currentle FreeBSD on NFS_V4 root? Explain: pxeboot do NFS_v3 (not NFS_v4) mount and pass fd to kernel. In this setup kernel can use only configured (established) nfs fh. This is not allowed to switch version or some options. When pxeboot use TFTP (not NFS) kernel (in nfs/bootp_subr.c) do DHCP discover and don't allow (in nfs/nfs_diskless.c:nfs_parse_options) 'nfsv4' option. nfs/nfs_diskless.c:nfs_setup_diskless also initialy set nd3->root_args.flags = (NFSMNT_NFSV3 | NFSMNT_WSIZE | NFSMNT_RSIZE | NFSMNT_RESVPORT); and don't allow 'nfsv4' option. Where I be wrong? How I can use diskless setup with R/O root on NFS_V4 share?