From owner-freebsd-hackers@FreeBSD.ORG Sun Feb 22 09:56:37 2015 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 1BE85C53 for ; Sun, 22 Feb 2015 09:56:37 +0000 (UTC) Received: from puchar.net (puchar.net [188.252.31.250]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "puchar.net", Issuer "puchar.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 96584854 for ; Sun, 22 Feb 2015 09:56:35 +0000 (UTC) Received: Received: from 127.0.0.1 (localhost [127.0.0.1]) by puchar.net (8.14.9/8.14.9) with ESMTP id t1M9sE79063423 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Sun, 22 Feb 2015 10:54:15 +0100 (CET) (envelope-from wojtek@puchar.net) Received: from laptop.wojtek.intra (localhost [127.0.0.1]) by laptop.wojtek.intra (8.14.9/8.14.9) with ESMTP id t1M9s9R7000698 for ; Sun, 22 Feb 2015 10:54:09 +0100 (CET) (envelope-from wojtek@puchar.net) Received: from localhost (wojtek@localhost) by laptop.wojtek.intra (8.14.9/8.14.9/Submit) with ESMTP id t1M9s340000695 for ; Sun, 22 Feb 2015 10:54:04 +0100 (CET) (envelope-from wojtek@puchar.net) X-Authentication-Warning: laptop.wojtek.intra: wojtek owned process doing -bs Date: Sun, 22 Feb 2015 10:54:03 +0100 (CET) From: Wojciech Puchar X-X-Sender: wojtek@laptop.wojtek.intra To: freebsd-hackers@freebsd.org Subject: disk powerdown Message-ID: User-Agent: Alpine 2.11 (BSF 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (puchar.net [10.0.1.1]); Sun, 22 Feb 2015 10:54:15 +0100 (CET) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Feb 2015 09:56:37 -0000 how to turn off laptop magnetic drive (SATA) automatic powerdown feature. it turns down and up lots of time in my laptop to save a little of power and destroy drive much quicker :) and being so annoying. From owner-freebsd-hackers@FreeBSD.ORG Sun Feb 22 13:35:42 2015 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9C11F62F for ; Sun, 22 Feb 2015 13:35:42 +0000 (UTC) Received: from tensor.andric.com (unknown [IPv6:2001:7b8:3a7:1:2d0:b7ff:fea0:8c26]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "tensor.andric.com", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 57B551E1 for ; Sun, 22 Feb 2015 13:35:42 +0000 (UTC) Received: from [IPv6:2001:7b8:3a7::a173:211c:6bdc:4615] (unknown [IPv6:2001:7b8:3a7:0:a173:211c:6bdc:4615]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 4CFF85C47; Sun, 22 Feb 2015 14:35:37 +0100 (CET) Subject: Re: disk powerdown Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\)) Content-Type: multipart/signed; boundary="Apple-Mail=_D5BB1796-2BAE-4460-8820-319D67A878D5"; protocol="application/pgp-signature"; micalg=pgp-sha1 X-Pgp-Agent: GPGMail 2.5b5 From: Dimitry Andric In-Reply-To: Date: Sun, 22 Feb 2015 14:35:33 +0100 Message-Id: References: To: Wojciech Puchar X-Mailer: Apple Mail (2.2070.6) Cc: freebsd-hackers@freebsd.org X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Feb 2015 13:35:42 -0000 --Apple-Mail=_D5BB1796-2BAE-4460-8820-319D67A878D5 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 22 Feb 2015, at 10:54, Wojciech Puchar wrote: >=20 > how to turn off laptop magnetic drive (SATA) automatic powerdown = feature. it turns down and up lots of time in my laptop to save a little = of power and destroy drive much quicker :) and being so annoying. Install the sysutils/ataidle port, then use: ataidle -A 0 -P 0 /dev/ada0 and replace ada0 with whatever your disk device is. It will use more = power, obviously... -Dimitry --Apple-Mail=_D5BB1796-2BAE-4460-8820-319D67A878D5 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.26 iEYEARECAAYFAlTp2ykACgkQsF6jCi4glqPvUwCdFAr/8btZLfWfVvN91tN7vfja 27wAoPp2uIilRB5aP1wh2USwKSwz4kRf =7wMh -----END PGP SIGNATURE----- --Apple-Mail=_D5BB1796-2BAE-4460-8820-319D67A878D5-- From owner-freebsd-hackers@FreeBSD.ORG Sun Feb 22 18:45:16 2015 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id AA2BCF79 for ; Sun, 22 Feb 2015 18:45:16 +0000 (UTC) Received: from pmta1.delivery2.ore.mailhop.org (pmta1.delivery2.ore.mailhop.org [54.149.210.130]) by mx1.freebsd.org (Postfix) with ESMTP id 8879D3DD for ; Sun, 22 Feb 2015 18:45:15 +0000 (UTC) Received: from smtp1.ore.mailhop.org (172.31.36.112) by pmta1.delivery1.ore.mailhop.org id ht8hq620r84s for ; Sun, 22 Feb 2015 18:44:50 +0000 (envelope-from ) Received: from c-73-34-117-227.hsd1.co.comcast.net ([73.34.117.227] helo=ilsoft.org) by smtp1.ore.mailhop.org with esmtpsa (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.82) (envelope-from ) id 1YPbWl-0007ak-VK; Sun, 22 Feb 2015 18:45:16 +0000 Received: from fb864.hippie.lan (fb864.hippie.lan [172.22.42.242]) by ilsoft.org (8.14.9/8.14.9) with ESMTP id t1MIjDtY003479; Sun, 22 Feb 2015 11:45:14 -0700 (MST) (envelope-from ian@freebsd.org) X-Mail-Handler: DuoCircle Outbound SMTP X-Originating-IP: 73.34.117.227 X-Report-Abuse-To: abuse@duocircle.com (see https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information for abuse reporting information) X-MHO-User: U2FsdGVkX1/8XUYZ4zNLVqOul0qAO61n Message-ID: <1424630713.56366.20.camel@freebsd.org> Subject: Re: disk powerdown From: Ian Lepore To: Wojciech Puchar Date: Sun, 22 Feb 2015 11:45:13 -0700 In-Reply-To: References: Content-Type: text/plain; charset="us-ascii" X-Mailer: Evolution 3.12.8 FreeBSD GNOME Team Port Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Feb 2015 18:45:16 -0000 On Sun, 2015-02-22 at 10:54 +0100, Wojciech Puchar wrote: > how to turn off laptop magnetic drive (SATA) automatic powerdown feature. > it turns down and up lots of time in my laptop to save a little of power > and destroy drive much quicker :) and being so annoying. > Create an /etc/rc.local (if you don't have one already) and put this in it: camcontrol idle ada0 -t 0 Put one of those lines for each drive. -t 0 disables spindown. Instead of zero you can put the number of seconds of idle time you want before the drive spins down. To manually spin down a drive immediately: camcontrol standby ada0 -- Ian From owner-freebsd-hackers@FreeBSD.ORG Mon Feb 23 06:54:57 2015 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 8575F956; Mon, 23 Feb 2015 06:54:57 +0000 (UTC) Received: from puchar.net (puchar.net [188.252.31.250]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "puchar.net", Issuer "puchar.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 0B853383; Mon, 23 Feb 2015 06:54:56 +0000 (UTC) Received: Received: from 127.0.0.1 (localhost [127.0.0.1]) by puchar.net (8.14.9/8.14.9) with ESMTP id t1N6soA6026162 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 23 Feb 2015 07:54:51 +0100 (CET) (envelope-from wojtek@puchar.net) Received: from laptop.wojtek.intra (localhost [127.0.0.1]) by laptop.wojtek.intra (8.14.9/8.14.9) with ESMTP id t1N6skH6000749; Mon, 23 Feb 2015 07:54:46 +0100 (CET) (envelope-from wojtek@puchar.net) Received: from localhost (wojtek@localhost) by laptop.wojtek.intra (8.14.9/8.14.9/Submit) with ESMTP id t1N6sfG7000746; Mon, 23 Feb 2015 07:54:41 +0100 (CET) (envelope-from wojtek@puchar.net) X-Authentication-Warning: laptop.wojtek.intra: wojtek owned process doing -bs Date: Mon, 23 Feb 2015 07:54:40 +0100 (CET) From: Wojciech Puchar X-X-Sender: wojtek@laptop.wojtek.intra To: Ian Lepore Subject: Re: disk powerdown In-Reply-To: <1424630713.56366.20.camel@freebsd.org> Message-ID: References: <1424630713.56366.20.camel@freebsd.org> User-Agent: Alpine 2.11 (BSF 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (puchar.net [10.0.1.1]); Mon, 23 Feb 2015 07:54:51 +0100 (CET) Cc: freebsd-hackers@freebsd.org X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Feb 2015 06:54:57 -0000 > Create an /etc/rc.local (if you don't have one already) and put this in > it: > > camcontrol idle ada0 -t 0 exactly what i needed. thank you From owner-freebsd-hackers@FreeBSD.ORG Wed Feb 25 15:00:13 2015 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 66EA394E; Wed, 25 Feb 2015 15:00:13 +0000 (UTC) Received: from mail-ie0-x235.google.com (mail-ie0-x235.google.com [IPv6:2607:f8b0:4001:c03::235]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 28A8C231; Wed, 25 Feb 2015 15:00:13 +0000 (UTC) Received: by iecrp18 with SMTP id rp18so5570957iec.1; Wed, 25 Feb 2015 07:00:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=F/sSwcQtUIUg4Fh13WAbgJXyeZphU0papjjQhL2Hrbs=; b=sGRwFnE+NXEbjpg3LdyHMVBl57P0vYoJZzyVS9MVf3avF4ME0SosaBhEbrc20VGn3j RMU1tCDldvsmMsJUoRcRhlKHZL32YfwyPegbYKQd99PmznBihdg/NR7ry7uO6ZHL6e32 2qxgTM38EMV7zGqzf8KxYtj9/7qWczoH7d2mC6grzopb96bwG+pjvv7+m3nHTygiuGtE FkUY/QP7vAiDKKnsSmZ0dwKimtQw+l/YiejPdVYtpI4cc78QwEyc5J4KYCePNtzP6jrX 2wOQE/Z3vK4qWuF9iSCb6a7NF3Xon6Gkz8LP+9C61+B3fhEFFiZcfkEGxYk2VMk+UOiU udxA== X-Received: by 10.107.7.93 with SMTP id 90mr4957372ioh.69.1424876412598; Wed, 25 Feb 2015 07:00:12 -0800 (PST) MIME-Version: 1.0 Received: by 10.64.107.138 with HTTP; Wed, 25 Feb 2015 06:59:52 -0800 (PST) In-Reply-To: <20150217193132.65fe16bb.ohartman@zedat.fu-berlin.de> References: <4E4BF84E-F6FD-4D25-8B2C-2B443894697B@gmail.com> <20150217193132.65fe16bb.ohartman@zedat.fu-berlin.de> From: Luca Pizzamiglio Date: Wed, 25 Feb 2015 15:59:52 +0100 Message-ID: Subject: Re: pcie Realtek 8168G issues (re driver) To: "O. Hartmann" Content-Type: text/plain; charset=UTF-8 Cc: Ben Perrault , freebsd-net@freebsd.org, FreeBSD Current , "freebsd-hardware@freebsd.org" , FreeBSD Hackers X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Feb 2015 15:00:13 -0000 Hi, thanks you all for the replies. Unfortunately, the network chip is still not working and I updated the PR (https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=197535) with the last tests. It seems that received packets are not transferred to mbuf or they are transferred, but later, after the mbuf is already freed; moreover, the ring entries are written without looping, overwriting and messing up the whole kernel memory. It looks like a DMA issues, but Apparently it seems a hardware error, but using a Linux distro, it works :( Has someone maybe any other ideas? In the meanwhile I'll get another board with the same chip :O Best regards, Luca On Tue, Feb 17, 2015 at 7:31 PM, O. Hartmann wrote: > Am Tue, 17 Feb 2015 18:32:22 +0100 > Luca Pizzamiglio schrieb: > >> Hi Ben, >> thanks for the tip! tso was already disabled. >> I tried anyway and unfortunately it crashes as before. >> >> I filled a bug report >> (https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=197535) and marius@ >> is giving me a big help on it. >> >> Best regards, >> Luca >> >> On Fri, Feb 13, 2015 at 7:34 PM, Ben Perrault wrote: >> > Luca, >> > >> > I've had the same issue with this interface on both PCIe boards and embedded in a >> > handful of Lenovo products. The one, fairly ugly workaround I've found that makes it >> > work well enough is disable tso ( i.e. ifconfig re0 down && ifconfig re0 -tso && >> > ifconfig re0 up ). This also seems to stop the panics under current. >> > >> > I'm not sure it will work for you - but it has on everyone of those interfaces I've >> > dealt with. >> > >> > Good luck, >> > -bp >> > >> >> On Feb 13, 2015, at 8:06 AM, Luca Pizzamiglio wrote: >> >> >> >> Hi, I'm Luca, >> >> >> >> I've some issues using a PCIe Realtek Ethernet board: >> >> re0@pci0:3:0:0: class=0x020000 card=0x012310ec chip=0x816810ec rev=0x0c hdr=0x00 >> >> vendor = 'Realtek Semiconductor Co., Ltd.' >> >> device = 'RTL8111/8168B PCI Express Gigabit Ethernet controller' >> >> class = network >> >> subclass = ethernet >> >> bar [10] = type I/O Port, range 32, base 0x1000, size 256, enabled >> >> bar [18] = type Memory, range 64, base 0x90500000, size 4096, enabled >> >> bar [20] = type Prefetchable Memory, range 64, base 0x90400000, >> >> size 16384, enabled >> >> cap 01[40] = powerspec 3 supports D0 D1 D2 D3 current D0 >> >> cap 05[50] = MSI supports 1 message, 64 bit >> >> cap 10[70] = PCI-Express 2 endpoint IRQ 1 max data 128(128) link x1(x1) >> >> speed 2.5(2.5) ASPM disabled(L0s/L1) >> >> cap 11[b0] = MSI-X supports 4 messages >> >> Table in map 0x20[0x0], PBA in map 0x20[0x800] >> >> cap 03[d0] = VPD >> >> ecap 0001[100] = AER 1 0 fatal 0 non-fatal 0 corrected >> >> ecap 0002[140] = VC 1 max VC0 >> >> ecap 0003[160] = Serial 1 01000000684ce000 >> >> ecap 0018[170] = LTR 1 >> >> >> >> Rx and Tx don't work. After some minutes the interface is activated I >> >> get kernel panic. >> >> I've already tried to disable MSIx and MSI. >> >> It seems a DMA problem, rx fill the 256 descriptors and the nothing >> >> else until the panic. netstat -s shows now new packets. >> >> >> >> I filled a bug report with more infos: >> >> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=197535 >> >> >> >> could someone kindly pointing some ideas? >> >> >> >> Best regards, >> >> Luca >> >> _______________________________________________ >> >> freebsd-current@freebsd.org mailing list >> >> http://lists.freebsd.org/mailman/listinfo/freebsd-current >> >> To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" >> _______________________________________________ >> freebsd-current@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-current >> To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" > > In September 2014 I filed allready a bug acoording to strange behaviour with a Lenovo > ThinkPad E540 with a Realtek chip: > > > Bug 193743 - RTL8111/8168B PCI Express Gigabit Ethernet > controller: doesn't work properly, problems getting UP automatically From owner-freebsd-hackers@FreeBSD.ORG Thu Feb 26 16:37:09 2015 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 22A30ABD for ; Thu, 26 Feb 2015 16:37:09 +0000 (UTC) Received: from mail-qc0-x22a.google.com (mail-qc0-x22a.google.com [IPv6:2607:f8b0:400d:c01::22a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D1EBAF63 for ; Thu, 26 Feb 2015 16:37:08 +0000 (UTC) Received: by qcwb13 with SMTP id b13so9362836qcw.6 for ; Thu, 26 Feb 2015 08:37:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=VMR+ei4gS4KO5r7V36C2GtmqcxCttCK4kSTn2vWcC4g=; b=CtT4MgjAfZu68O75AKkWpQC4l7ah41NYoFumxAK+LUoN8ZhDwEW+jg6G+ZBZ2pQsI2 SBPfcGfjncWrqEgwt4NpwsECo0iv/RlftmxrSMFd/gN2Ye4Cztcz4EfqmFkBqN8j9KCP OTvbuqePIOEKizQ7RC0AaOxf/2jA5Y0CRDocpwzb57iJPv6O+6jRAW2YTOli3Fm2N4Js yjKjoJHo5cE2CqtHBGkySsiE8AxoA2ha1/Oaow/eI4wV8a8ZzMoqgmmK1qSS3zCgFULZ O92X1a+A0bodhsykgxHsjr9IDWRdhCQodBxk+F76I1Wbmzbw3euQLHvkNPSFJzhSALP8 54hw== MIME-Version: 1.0 X-Received: by 10.140.239.136 with SMTP id k130mr20400929qhc.2.1424968627927; Thu, 26 Feb 2015 08:37:07 -0800 (PST) Received: by 10.140.145.11 with HTTP; Thu, 26 Feb 2015 08:37:07 -0800 (PST) Date: Thu, 26 Feb 2015 11:37:07 -0500 Message-ID: Subject: only the first two enteries in /etc/exports show up From: Aryeh Friedman To: FreeBSD Mailing List Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Feb 2015 16:37:09 -0000 having this in /etc/exports: /data/home -maproot=root -network 10.0.10.0/24 /usr/src -maproot=root -network 10.0.10.0/24 /usr/ports -maproot=root -network 10.0.10.0/24 produces the following results: root@server:/usr/ports # showmount -e Exports list on localhost: /data/home 10.0.10.0 /usr/src 10.0.10.0 It doesn't matter what order I list them in only the first two show up in showmount -- Aryeh M. Friedman, Lead Developer, http://www.PetiteCloud.org From owner-freebsd-hackers@FreeBSD.ORG Thu Feb 26 16:49:08 2015 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 17360EE0 for ; Thu, 26 Feb 2015 16:49:08 +0000 (UTC) Received: from mx1.scaleengine.net (beauharnois2.bhs1.scaleengine.net [142.4.218.15]) by mx1.freebsd.org (Postfix) with ESMTP id E3B36128 for ; Thu, 26 Feb 2015 16:49:07 +0000 (UTC) Received: from [192.168.1.2] (Seawolf.HML3.ScaleEngine.net [209.51.186.28]) (Authenticated sender: allanjude.freebsd@scaleengine.com) by mx1.scaleengine.net (Postfix) with ESMTPSA id A2D1B988C1 for ; Thu, 26 Feb 2015 16:49:06 +0000 (UTC) Message-ID: <54EF4E8E.1020801@freebsd.org> Date: Thu, 26 Feb 2015 11:49:18 -0500 From: Allan Jude User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Subject: Re: only the first two enteries in /etc/exports show up References: In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="xpAvKEWcHvIHL2jxMFm4dTg9BfnEPDM1l" X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Feb 2015 16:49:08 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --xpAvKEWcHvIHL2jxMFm4dTg9BfnEPDM1l Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 2015-02-26 11:37, Aryeh Friedman wrote: > having this in /etc/exports: >=20 >=20 > /data/home -maproot=3Droot -network 10.0.10.0/24 > /usr/src -maproot=3Droot -network 10.0.10.0/24 > /usr/ports -maproot=3Droot -network 10.0.10.0/24 >=20 > produces the following results: >=20 >=20 > root@server:/usr/ports # showmount -e > Exports list on localhost: > /data/home 10.0.10.0 > /usr/src 10.0.10.0 >=20 >=20 > It doesn't matter what order I list them in only the first two show up > in showmount >=20 Are you using NFSv3 or NFSv4? What does your partitioning layout look like? When you reload mountd, does it emit any errors? (check syslog as well) --=20 Allan Jude --xpAvKEWcHvIHL2jxMFm4dTg9BfnEPDM1l Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (MingW32) iQIcBAEBAgAGBQJU706RAAoJEJrBFpNRJZKfdNIP/3kUjycQZKIVUQCjwcFcPouF CdhaAi4Rer0XfYalVt97zq6L22AqOOYtaHNDiaJR7M/3TlYxt0sJRqQ+v/6skWgL dcaJmTDsdp+ZHWenIBNcutXf4w47uZTDDe82+jj0CbxcB17vEoQTOcsNtWe04yUw Ak8M4YFNyPKOh3lDII9SDJBFTZUpFSfrUubYPo7aePmsVKuS3pNICatE8DpcqGcw bTBMec57hgKMNYJXv9qcS/aodBd00kVhUCnRaCXJvgfyVzc5LjqoiYXXKMc/s00b NAW0GbVp5nOPmyshwekriKwu6nB3cI0DKRshz2qfXLRbZ8vIFTLSQXZdSiqKQ+Ce oI0bfE6A4+5Aktg2OtmTKJx8V/y1FY+28QzqFyYEgk6CuGeBqEAWJ98fDuynALBn pMH1MTqIRZVpk71cr1Jia7X6qwR3G4bGDENEXBQi/IflkzZ1LX6xi6DMvuH7Bj8J BXNRPpGBJ8hRRGvq2VKkCzzNA6hBftC9Upxl53obpL+lnVUdCWo0PIVoblFKssy6 NAdYXJqJ4KzYJ9gZXTJbIl5o8LWwcy/ZignUHZZqar12Gt3QT8ZFs7E3Y58c1t1b P/qbxLg3JZIRaKCTE0TZb4ed12MrslU0LlpLzfQd+A+0wsbwVJKm5ziFA1GEASwk XyMPVBrtH/5uBDC/BUqr =mAPv -----END PGP SIGNATURE----- --xpAvKEWcHvIHL2jxMFm4dTg9BfnEPDM1l-- From owner-freebsd-hackers@FreeBSD.ORG Thu Feb 26 16:58:58 2015 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id BD34B31E; Thu, 26 Feb 2015 16:58:58 +0000 (UTC) Received: from mail-qg0-x230.google.com (mail-qg0-x230.google.com [IPv6:2607:f8b0:400d:c04::230]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 75CA024B; Thu, 26 Feb 2015 16:58:58 +0000 (UTC) Received: by mail-qg0-f48.google.com with SMTP id l89so3476730qgf.7; Thu, 26 Feb 2015 08:58:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=aPp/wxzlDzPZF5RHF3j3IAD8+vOoVk10i2KNgtuTZZc=; b=IplKXy+p8S43pHPJFnLUBjYH4E/lKy9Ef39sItSCAtY/s+vn+PPaYB3cVH+CFA6l01 5QULeV9biMzeqfI3ALoKchcatkHgUVJFGXPth92C0HfMCKQXMyuEVBu+18UQRdjIjLyZ HFu2WLama+nfhQKqHo7KamikNHJVSLQdBj7c3BmNd8q+7I1J+e6Mcb9zbT2NnnW8ZshG RzAialo4vISDKPPN4bnKYHv2iYabAh1wfrJPsnVXeaw70ygfrHymJkrmVKwoOQt7MEkD KdxbtwyuZN3Eo+PNvNbJFONLuJUTpf9Wg/UBDwDn4ShtJ6gwdWncB8JklDDODKsF+Q+0 q7pQ== MIME-Version: 1.0 X-Received: by 10.229.65.8 with SMTP id g8mr20446529qci.15.1424969937076; Thu, 26 Feb 2015 08:58:57 -0800 (PST) Received: by 10.140.145.11 with HTTP; Thu, 26 Feb 2015 08:58:57 -0800 (PST) In-Reply-To: <54EF4E8E.1020801@freebsd.org> References: <54EF4E8E.1020801@freebsd.org> Date: Thu, 26 Feb 2015 11:58:57 -0500 Message-ID: Subject: Re: only the first two enteries in /etc/exports show up From: Aryeh Friedman To: Allan Jude Content-Type: text/plain; charset=UTF-8 Cc: FreeBSD Mailing List X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Feb 2015 16:58:58 -0000 On Thu, Feb 26, 2015 at 11:49 AM, Allan Jude wrote: > On 2015-02-26 11:37, Aryeh Friedman wrote: >> having this in /etc/exports: >> >> >> /data/home -maproot=root -network 10.0.10.0/24 >> /usr/src -maproot=root -network 10.0.10.0/24 >> /usr/ports -maproot=root -network 10.0.10.0/24 >> >> produces the following results: >> >> >> root@server:/usr/ports # showmount -e >> Exports list on localhost: >> /data/home 10.0.10.0 >> /usr/src 10.0.10.0 >> >> >> It doesn't matter what order I list them in only the first two show up >> in showmount >> > > Are you using NFSv3 or NFSv4? what ever the base system has 10.1 > > What does your partitioning layout look like? Running as a VM in bhyve Filesystem 1024-blocks Used Avail Capacity Mounted on /dev/vtbd0p2 9637788 8583820 282948 97% / devfs 1 1 0 100% /dev /dev/vtbd1 152334812 68 140147960 0% /data > > When you reload mountd, does it emit any errors? (check syslog as well) No errors on the command line.... in syslog: Feb 26 06:57:27 server mountd[1299]: can't change attributes for /usr/ports: Invalid radix node head, rn: 0 0xfffff80003993100 Feb 26 06:57:27 server mountd[1299]: bad exports list line /usr/ports -maproot > > -- > Allan Jude > -- Aryeh M. Friedman, Lead Developer, http://www.PetiteCloud.org From owner-freebsd-hackers@FreeBSD.ORG Thu Feb 26 17:06:29 2015 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 735A05B1 for ; Thu, 26 Feb 2015 17:06:29 +0000 (UTC) Received: from mx1.scaleengine.net (beauharnois2.bhs1.scaleengine.net [142.4.218.15]) by mx1.freebsd.org (Postfix) with ESMTP id 34B13357 for ; Thu, 26 Feb 2015 17:06:28 +0000 (UTC) Received: from [192.168.1.2] (Seawolf.HML3.ScaleEngine.net [209.51.186.28]) (Authenticated sender: allanjude.freebsd@scaleengine.com) by mx1.scaleengine.net (Postfix) with ESMTPSA id D903C989F1 for ; Thu, 26 Feb 2015 17:06:27 +0000 (UTC) Message-ID: <54EF529F.5030300@freebsd.org> Date: Thu, 26 Feb 2015 12:06:39 -0500 From: Allan Jude User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Subject: Re: only the first two enteries in /etc/exports show up References: <54EF4E8E.1020801@freebsd.org> In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="mWeR6W53XKwfU5tBsuaWiGWrOSQi8KIEr" X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Feb 2015 17:06:29 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --mWeR6W53XKwfU5tBsuaWiGWrOSQi8KIEr Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 2015-02-26 11:58, Aryeh Friedman wrote: > On Thu, Feb 26, 2015 at 11:49 AM, Allan Jude wr= ote: >> On 2015-02-26 11:37, Aryeh Friedman wrote: >>> having this in /etc/exports: >>> >>> >>> /data/home -maproot=3Droot -network 10.0.10.0/24 >>> /usr/src -maproot=3Droot -network 10.0.10.0/24 >>> /usr/ports -maproot=3Droot -network 10.0.10.0/24 >>> >>> produces the following results: >>> >>> >>> root@server:/usr/ports # showmount -e >>> Exports list on localhost: >>> /data/home 10.0.10.0 >>> /usr/src 10.0.10.0 >>> >>> >>> It doesn't matter what order I list them in only the first two show u= p >>> in showmount >>> >> >> Are you using NFSv3 or NFSv4? >=20 > what ever the base system has 10.1 >=20 >> >> What does your partitioning layout look like? >=20 > Running as a VM in bhyve >=20 >=20 > Filesystem 1024-blocks Used Avail Capacity Mounted on > /dev/vtbd0p2 9637788 8583820 282948 97% / > devfs 1 1 0 100% /dev > /dev/vtbd1 152334812 68 140147960 0% /data >=20 >=20 >> >> When you reload mountd, does it emit any errors? (check syslog as well= ) >=20 > No errors on the command line.... in syslog: >=20 > Feb 26 06:57:27 server mountd[1299]: can't change attributes for > /usr/ports: Invalid radix node head, rn: 0 0xfffff80003993100 > Feb 26 06:57:27 server mountd[1299]: bad exports list line /usr/ports -= maproot >=20 >> >> -- >> Allan Jude >> >=20 >=20 >=20 You can only have 1 export per mount point in NFSv3 (in V4, you can only export the root of a mount point) So what you want in your config file is: /data/home -maproot=3Droot -network 10.0.10.0/24 /usr/src /usr/ports -maproot=3Droot -network 10.0.10.0/24 --=20 Allan Jude --mWeR6W53XKwfU5tBsuaWiGWrOSQi8KIEr Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (MingW32) iQIcBAEBAgAGBQJU71KjAAoJEJrBFpNRJZKf9bIP/RNk0mSM5Rm0FlE7oiDCXaGP E7r7nbAXtgEoJOQnmlJnHTMbx7PL+t1DfRaayAlOBOlFj5z/WpWm4vqmsKXs+d+e 8XoBjnCNRt2wRSbGlGToltqkO5KAieJqKKXYdlHNxy+2RPkI6/FGf5XTdV2QumYA GNwcvesS4H9nNdt8IS843HXz9bWhh9eK/Z/jMPdq/CY5W4DPArCz62pbyF3wNCOf 9Gma9EpajvYSnQe5j7aQwVGZerLOHJjK/pj6btrIURy+mE+VIabTnQcp0qqRR4T4 elhNX7pGwJQ7cIaCYjPU2UytM8kmMussBnLlIr9rD/8mFUmtucB3n0pGwfQLeSA9 etbMF11Zu0LEqH7GfzRLtRVa0MDwjsqjGw59fd7MLfhim6TnVVi9AgKJnuZAWgAt F7Zob7qx/gMyPbFM+bgf9ANliDm52VWP3ubG3rXq3OszOg7xiOQShhdNmNDLe20r Z5WUj/H71wBMQFmRImjY56A5f0Y3E7NZCOPVmwiiVBYzzBdr/GfU190FVDWreTU5 EsjqXVj0YdTNy0riNbyjpbh2FynDSIrnCgCaQoXD8ZTxKEhgPhCalTsod0YVeBF1 3KKL9zBKctGtscZrFmZTV1tto3WgK2PXgYYD0MlUsNj91tiTHAXPjCMwKMPHhQ9m 4ewBgcc8B9pHDMCz3GxS =FubM -----END PGP SIGNATURE----- --mWeR6W53XKwfU5tBsuaWiGWrOSQi8KIEr-- From owner-freebsd-hackers@FreeBSD.ORG Thu Feb 26 18:18:42 2015 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id EC94C6CB for ; Thu, 26 Feb 2015 18:18:42 +0000 (UTC) Received: from mail-ie0-x235.google.com (mail-ie0-x235.google.com [IPv6:2607:f8b0:4001:c03::235]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A5A9CE6C for ; Thu, 26 Feb 2015 18:18:42 +0000 (UTC) Received: by iecvy18 with SMTP id vy18so18795270iec.13 for ; Thu, 26 Feb 2015 10:18:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dataix.net; s=rsa; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=i659Dvc7o8/g7FKI0AsRNCDYuDX8gKpaHuNo9s+u1o4=; b=a+hBPH8hKxJouIDG4282FKGZIWdjnv8jPKKhdPbba96j6y4mOVPQdQXTSMPUcPuq3G 0ldRGFTiR6LipcYoh2OEUt8qgub9gFsdWAUl+ID5quB58raI1H/acFguppAV8Ebmycmu l3yOPTDfE0YUrHhUJ1wQ837NyJit7dYRxfAQU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:mime-version:content-type:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to; bh=i659Dvc7o8/g7FKI0AsRNCDYuDX8gKpaHuNo9s+u1o4=; b=ZhYrsRuEe7dEwMqrLcV1sbXub+oIaGr8Lht4giiTl3wxwleR5PTob7Mf0hdYvEb/z+ CoHIefHb2+zEm8cvVc5BI4CaqlcwShVlfqwdKlPXxds25BtwVgyRfmhYtKBRLzUdTBc8 UGE6mZarwsRGc4CgxRKURfaecBLYQdwEo+F6BsWLj8J4BY//Lf450OT9I6grFuWqDbX6 WtqYvkI6RI6W75r+tPmBxHtHzdfUMDrlqrXD5fZE6X1b78X8/FbsDcM+hxIbzDOPKJ6B 9fwuJk06wjelbw67Ekrf4x0wVQACX3C4iTgMhDpnpeF3c7mSnaZcQy0xxrVAVsmIYU/4 VOHA== X-Gm-Message-State: ALoCoQkT5XV7Iv87kg8XOlm0zn7+ErZax3HcQBp7rPtJSv75ThGfHJPDJNbXJMGcS0QbWrJIG/y0 X-Received: by 10.43.173.9 with SMTP id oa9mr11073629icc.13.1424974721970; Thu, 26 Feb 2015 10:18:41 -0800 (PST) Received: from [192.168.8.21] ([66.195.151.70]) by mx.google.com with ESMTPSA id d6sm803697iod.11.2015.02.26.10.18.41 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 26 Feb 2015 10:18:41 -0800 (PST) Subject: Re: only the first two enteries in /etc/exports show up Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\)) Content-Type: text/plain; charset="utf8"; X-Pgp-Agent: GPGMail 2.5b5 From: Jason Hellenthal In-Reply-To: <54EF529F.5030300@freebsd.org> Date: Thu, 26 Feb 2015 12:18:39 -0600 Content-Transfer-Encoding: 8bit Message-Id: <2976DA93-DD6E-4139-A0C8-3C2587A65362@dataix.net> References: <54EF4E8E.1020801@freebsd.org> <54EF529F.5030300@freebsd.org> To: Allan Jude X-Mailer: Apple Mail (2.2070.6) Cc: freebsd-hackers@freebsd.org X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Feb 2015 18:18:43 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Feb 26, 2015, at 11:06, Allan Jude wrote: On 2015-02-26 11:58, Aryeh Friedman wrote: On Thu, Feb 26, 2015 at 11:49 AM, Allan Jude wrote: On 2015-02-26 11:37, Aryeh Friedman wrote: having this in /etc/exports: /data/home -maproot=root -network 10.0.10.0/24 /usr/src -maproot=root -network 10.0.10.0/24 /usr/ports -maproot=root -network 10.0.10.0/24 produces the following results: root@server:/usr/ports # showmount -e Exports list on localhost: /data/home 10.0.10.0 /usr/src 10.0.10.0 It doesn't matter what order I list them in only the first two show up in showmount Are you using NFSv3 or NFSv4? what ever the base system has 10.1 What does your partitioning layout look like? Running as a VM in bhyve Filesystem 1024-blocks Used Avail Capacity Mounted on /dev/vtbd0p2 9637788 8583820 282948 97% / devfs 1 1 0 100% /dev /dev/vtbd1 152334812 68 140147960 0% /data When you reload mountd, does it emit any errors? (check syslog as well) No errors on the command line.... in syslog: Feb 26 06:57:27 server mountd[1299]: can't change attributes for /usr/ports: Invalid radix node head, rn: 0 0xfffff80003993100 Feb 26 06:57:27 server mountd[1299]: bad exports list line /usr/ports -maproot - -- Allan Jude You can only have 1 export per mount point in NFSv3 (in V4, you can only export the root of a mount point) So what you want in your config file is: /data/home -maproot=root -network 10.0.10.0/24 /usr/src /usr/ports -maproot=root -network 10.0.10.0/24 - -- Allan Jude As can be seen from ( man 5 exports ) examples section… http://j.mp/1AwAup6 That would lead me to believe I need to use “/usr” at the beginning of the export line since it is the root of the NFS share. Also looking at the grouping of examples might lead someone to believe that more than one “/usr/*” can be specified more than once on separate lines. Just a perspective that might need some clarification since at a quick glance could be interpreted multiple ways. - -- Jason Hellenthal Mobile: +1 (616) 953-0176 jhellenthal@DataIX.net JJH48-ARIN -----BEGIN PGP SIGNATURE----- iQEcBAEBAgAGBQJU72OAAAoJEDLu+wRc4KcIjVIIAKW6U5z7MDK65zCqwcB1n+Zj WxyukhsSlk49weIIj8Ied/VE8CRThgHvHdWqQ6TxOAgwfi5lz/WksPbFUpOLg5WK rjNW+vr9j/2PTSWVDJaDDo/P/R2/8e47cuLRuc/YUhEL7q0FgKzl0vip0WE/zUWf Ws/XyPi8RWnMdpfoQlW/vddZwjzooCJfQZ+X1kYSba/LidzmvD6/axP1C4V8xD+v daMCBG0894IW1toJo/bBmt9p4EeDIISPVSfVFBK/ReJjMwe8Izq0cJtpUzRwWYDx f6mfXxTXwp7TdtH8aw/dx7d0BY0kFoZrbGYecV083nxEAMVfHGkxuhiho/KMvZo= =+Sx5 -----END PGP SIGNATURE----- From owner-freebsd-hackers@FreeBSD.ORG Thu Feb 26 22:37:38 2015 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 705C972; Thu, 26 Feb 2015 22:37:38 +0000 (UTC) Received: from esa-annu.net.uoguelph.ca (esa-annu.mail.uoguelph.ca [131.104.91.36]) by mx1.freebsd.org (Postfix) with ESMTP id 0D3DD21C; Thu, 26 Feb 2015 22:37:37 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A2ChBQAAn+9U/95baINYA4MkMFUFBIMFvnUKhSdJAoF0AQEBAQEBfIQQAQEEAQEBICsgCxsOCgICDRkCKQEJJgYIBwQBHASIDggFvSSZegEBAQEGAQEBAQEBAQEBGYEhiXKEHQEBGwEjEAcRghwMLxKBMQWKWIh3ghaBMIM6OYtvgkiDPiOCAR2BbiAxBwQBAX45fwEBAQ X-IronPort-AV: E=Sophos;i="5.09,655,1418101200"; d="scan'208";a="195105965" Received: from muskoka.cs.uoguelph.ca (HELO zcs3.mail.uoguelph.ca) ([131.104.91.222]) by esa-annu.net.uoguelph.ca with ESMTP; 26 Feb 2015 17:37:35 -0500 Received: from zcs3.mail.uoguelph.ca (localhost.localdomain [127.0.0.1]) by zcs3.mail.uoguelph.ca (Postfix) with ESMTP id F0978B4068; Thu, 26 Feb 2015 17:37:35 -0500 (EST) Date: Thu, 26 Feb 2015 17:37:35 -0500 (EST) From: Rick Macklem To: Jason Hellenthal Message-ID: <1325541115.1293246.1424990255972.JavaMail.root@uoguelph.ca> In-Reply-To: <2976DA93-DD6E-4139-A0C8-3C2587A65362@dataix.net> Subject: Re: only the first two enteries in /etc/exports show up MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Originating-IP: [172.17.95.11] X-Mailer: Zimbra 7.2.6_GA_2926 (ZimbraWebClient - FF3.0 (Win)/7.2.6_GA_2926) Cc: freebsd-hackers@freebsd.org, Allan Jude X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Feb 2015 22:37:38 -0000 Jason Hellenthal wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 >=20 > On Feb 26, 2015, at 11:06, Allan Jude wrote: >=20 > On 2015-02-26 11:58, Aryeh Friedman wrote: > On Thu, Feb 26, 2015 at 11:49 AM, Allan Jude > wrote: > On 2015-02-26 11:37, Aryeh Friedman wrote: > having this in /etc/exports: >=20 >=20 > /data/home -maproot=3Droot -network 10.0.10.0/24 > /usr/src -maproot=3Droot -network 10.0.10.0/24 > /usr/ports -maproot=3Droot -network 10.0.10.0/24 >=20 > produces the following results: >=20 >=20 > root@server:/usr/ports # showmount -e > Exports list on localhost: > /data/home 10.0.10.0 > /usr/src 10.0.10.0 >=20 >=20 > It doesn't matter what order I list them in only the first two show > up > in showmount >=20 >=20 > Are you using NFSv3 or NFSv4? >=20 > what ever the base system has 10.1 >=20 >=20 > What does your partitioning layout look like? >=20 > Running as a VM in bhyve >=20 >=20 > Filesystem 1024-blocks Used Avail Capacity Mounted on > /dev/vtbd0p2 9637788 8583820 282948 97% / > devfs 1 1 0 100% /dev > /dev/vtbd1 152334812 68 140147960 0% /data >=20 >=20 >=20 > When you reload mountd, does it emit any errors? (check syslog as > well) >=20 > No errors on the command line.... in syslog: >=20 > Feb 26 06:57:27 server mountd[1299]: can't change attributes for > /usr/ports: Invalid radix node head, rn: 0 0xfffff80003993100 > Feb 26 06:57:27 server mountd[1299]: bad exports list line /usr/ports > -maproot >=20 >=20 > - -- > Allan Jude >=20 >=20 >=20 >=20 >=20 > You can only have 1 export per mount point in NFSv3 (in V4, you can > only > export the root of a mount point) >=20 > So what you want in your config file is: >=20 > /data/home -maproot=3Droot -network 10.0.10.0/24 > /usr/src /usr/ports -maproot=3Droot -network 10.0.10.0/24 >=20 Actually, this will be fine for NFSv4 as well as NFSv3 (assuming a V4: line was added to /etc/exports. Although exporting the root will be less confusing, any export within a ser= ver file system (such as "/" in this case) will export the entire file system f= or NFSv4. (ie. The /usr/src and /usr/ports are referred to as administrative c= ontrols and are only applied by mountd, which NFSv4 doesn't talk to.) W.r.t. NFSv3 Jason has it completely correct afaik, rick >=20 > - -- > Allan Jude >=20 > As can be seen from ( man 5 exports ) examples section=E2=80=A6 > http://j.mp/1AwAup6 >=20 > That would lead me to believe I need to use =E2=80=9C/usr=E2=80=9D at the= beginning > of the export line since it is the root of the NFS share. >=20 > Also looking at the grouping of examples might lead someone to > believe that more than one =E2=80=9C/usr/*=E2=80=9D can be specified more= than once > on separate lines. >=20 >=20 > Just a perspective that might need some clarification since at a > quick glance could be interpreted multiple ways. >=20 >=20 > - -- > Jason Hellenthal > Mobile: +1 (616) 953-0176 > jhellenthal@DataIX.net > JJH48-ARIN >=20 > -----BEGIN PGP SIGNATURE----- >=20 > iQEcBAEBAgAGBQJU72OAAAoJEDLu+wRc4KcIjVIIAKW6U5z7MDK65zCqwcB1n+Zj > WxyukhsSlk49weIIj8Ied/VE8CRThgHvHdWqQ6TxOAgwfi5lz/WksPbFUpOLg5WK > rjNW+vr9j/2PTSWVDJaDDo/P/R2/8e47cuLRuc/YUhEL7q0FgKzl0vip0WE/zUWf > Ws/XyPi8RWnMdpfoQlW/vddZwjzooCJfQZ+X1kYSba/LidzmvD6/axP1C4V8xD+v > daMCBG0894IW1toJo/bBmt9p4EeDIISPVSfVFBK/ReJjMwe8Izq0cJtpUzRwWYDx > f6mfXxTXwp7TdtH8aw/dx7d0BY0kFoZrbGYecV083nxEAMVfHGkxuhiho/KMvZo=3D > =3D+Sx5 > -----END PGP SIGNATURE----- > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to > "freebsd-hackers-unsubscribe@freebsd.org" From owner-freebsd-hackers@FreeBSD.ORG Fri Feb 27 06:47:17 2015 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 17FF4DF1 for ; Fri, 27 Feb 2015 06:47:17 +0000 (UTC) Received: from gold.funkthat.com (gate2.funkthat.com [208.87.223.18]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "gold.funkthat.com", Issuer "gold.funkthat.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id E4783BA7 for ; Fri, 27 Feb 2015 06:47:16 +0000 (UTC) Received: from gold.funkthat.com (localhost [127.0.0.1]) by gold.funkthat.com (8.14.5/8.14.5) with ESMTP id t1R6lAF7051542 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 26 Feb 2015 22:47:10 -0800 (PST) (envelope-from jmg@gold.funkthat.com) Received: (from jmg@localhost) by gold.funkthat.com (8.14.5/8.14.5/Submit) id t1R6lABJ051541; Thu, 26 Feb 2015 22:47:10 -0800 (PST) (envelope-from jmg) Date: Thu, 26 Feb 2015 22:47:04 -0800 From: John-Mark Gurney To: Aryeh Friedman Subject: Re: only the first two enteries in /etc/exports show up Message-ID: <20150227064703.GC32329@funkthat.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Operating-System: FreeBSD 9.1-PRERELEASE amd64 X-PGP-Fingerprint: 54BA 873B 6515 3F10 9E88 9322 9CB1 8F74 6D3F A396 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html X-TipJar: bitcoin:13Qmb6AeTgQecazTWph4XasEsP7nGRbAPE X-to-the-FBI-CIA-and-NSA: HI! HOW YA DOIN? can i haz chizburger? User-Agent: Mutt/1.5.21 (2010-09-15) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (gold.funkthat.com [127.0.0.1]); Thu, 26 Feb 2015 22:47:10 -0800 (PST) Cc: FreeBSD Mailing List X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Feb 2015 06:47:17 -0000 Aryeh Friedman wrote this message on Thu, Feb 26, 2015 at 11:37 -0500: > having this in /etc/exports: > > > /data/home -maproot=root -network 10.0.10.0/24 > /usr/src -maproot=root -network 10.0.10.0/24 > /usr/ports -maproot=root -network 10.0.10.0/24 > > produces the following results: > > > root@server:/usr/ports # showmount -e > Exports list on localhost: > /data/home 10.0.10.0 > /usr/src 10.0.10.0 > > > It doesn't matter what order I list them in only the first two show up > in showmount Though others have pointed this out already for the archives, exports(5) says: A host may be specified only once for each local file or the NFSv4 tree root on the server and there may be only one default entry for each server file system that applies to all other hosts. -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not." From owner-freebsd-hackers@FreeBSD.ORG Fri Feb 27 07:06:47 2015 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 8452E2AF for ; Fri, 27 Feb 2015 07:06:47 +0000 (UTC) Received: from mail-pd0-x22b.google.com (mail-pd0-x22b.google.com [IPv6:2607:f8b0:400e:c02::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4854FD6A for ; Fri, 27 Feb 2015 07:06:47 +0000 (UTC) Received: by pdev10 with SMTP id v10so19036731pde.7 for ; Thu, 26 Feb 2015 23:06:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :message-id:references:to; bh=AfrbtL8i4ncSjew4gkJc5/+a1P5j+EYHQ/iVW2w/Qf8=; b=Zfm6BMKXMI2llfzSZSXbkA+PmeJKS/aEYrfDHE2QrQGGakEZhOTGGzoCf5A9BV6NZB B8G75WRCwbdzR/h96oZx2YSfF/oz8qoErj1ia3FMoHwLUmZ06WjucFMIqPF7VVpCq5zD oeIGJ7bHIwWEdSq1oqychLqrD80gxcXmK1ZqcfUN9DdSH7TpcbTzV2TH6a3JioZiG+2Z C2BC+hOqbeQMIDKNaoOrmkA/S2HAx8eMzMd9lR/C0KkSqC7iUomsy32s++wWsisHU/zD ek5EFUKbgNTuZ7OSZZvo+10Y9UVuNhRWm/DLS8pD6S1lInyS+fadG/zRKqZGVgQoIUMy Icog== X-Received: by 10.68.135.136 with SMTP id ps8mr21733536pbb.130.1425020806722; Thu, 26 Feb 2015 23:06:46 -0800 (PST) Received: from ?IPv6:2601:8:ab80:7d6:15c9:2275:95cb:45c0? ([2601:8:ab80:7d6:15c9:2275:95cb:45c0]) by mx.google.com with ESMTPSA id mb5sm1294756pdb.74.2015.02.26.23.06.45 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 26 Feb 2015 23:06:45 -0800 (PST) Content-Type: multipart/signed; boundary="Apple-Mail=_88858C0B-56F8-4486-BE36-BBB94D0DE6C6"; protocol="application/pgp-signature"; micalg=pgp-sha512 Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Subject: Re: only the first two enteries in /etc/exports show up From: Garrett Cooper In-Reply-To: <20150227064703.GC32329@funkthat.com> Date: Thu, 26 Feb 2015 23:06:44 -0800 Message-Id: References: <20150227064703.GC32329@funkthat.com> To: John-Mark Gurney X-Mailer: Apple Mail (2.1878.6) Cc: FreeBSD Mailing List , Aryeh Friedman X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Feb 2015 07:06:47 -0000 --Apple-Mail=_88858C0B-56F8-4486-BE36-BBB94D0DE6C6 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 On Feb 26, 2015, at 22:47, John-Mark Gurney wrote: > Aryeh Friedman wrote this message on Thu, Feb 26, 2015 at 11:37 -0500: >> having this in /etc/exports: >>=20 >>=20 >> /data/home -maproot=3Droot -network 10.0.10.0/24 >> /usr/src -maproot=3Droot -network 10.0.10.0/24 >> /usr/ports -maproot=3Droot -network 10.0.10.0/24 >>=20 >> produces the following results: >>=20 >>=20 >> root@server:/usr/ports # showmount -e >> Exports list on localhost: >> /data/home 10.0.10.0 >> /usr/src 10.0.10.0 >>=20 >>=20 >> It doesn't matter what order I list them in only the first two show = up >> in showmount >=20 > Though others have pointed this out already for the archives, = exports(5) > says: > A host may be specified only once for each local file > or the NFSv4 tree root on the server and there may be only one = default > entry for each server file system that applies to all other hosts. Some potentially amusing, but related reading=85 = https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D191218 ;). --Apple-Mail=_88858C0B-56F8-4486-BE36-BBB94D0DE6C6 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQEcBAEBCgAGBQJU8BeEAAoJEMZr5QU6S73e9rMIAIifjjz2OVPdpgGNCaamP4cB c8pLU7n5TX2Mb5KMJyyMmq5KSf56ICh7LP4r/uqmAtrQZTPRrvtdbiG2F0Muuhe1 qs19f2com0RWrkrURuEUai4/fiWnbdZ8bm+IuiUo3eVN7k6Rt0S3zmPb0MS1lAb5 wuAMujKwXQ+WTN1SE2xjQAGp14ExVb8G8sl2DNBdNulwi88IkYRycRlwa+n0GZd/ WaZw0Q5LtMwrnXonA9aDqhgeUmx3kvxg2gKjC5LVtVLaN4WQDZsiknMWdlmzebfN Z1mFmWP5rboMiwMqCVvGeMpcEaxgN7bYb+OgddjWWPbm08DMdbbE9A0ZqU8vE/o= =eLEU -----END PGP SIGNATURE----- --Apple-Mail=_88858C0B-56F8-4486-BE36-BBB94D0DE6C6-- From owner-freebsd-hackers@FreeBSD.ORG Sat Feb 28 02:58:51 2015 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 31D4FEE for ; Sat, 28 Feb 2015 02:58:51 +0000 (UTC) Received: from mail-yk0-x234.google.com (mail-yk0-x234.google.com [IPv6:2607:f8b0:4002:c07::234]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id DF42B22B for ; Sat, 28 Feb 2015 02:58:50 +0000 (UTC) Received: by ykq19 with SMTP id 19so8913523ykq.4 for ; Fri, 27 Feb 2015 18:58:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:mime-version:content-type :content-disposition:user-agent; bh=ET/NW8REW9+UdsSuZWO6Cma/mK4idw/FTY/0HNI4V0Q=; b=Ci+fp7mrkFYa0KhFmaS/ZXkEBLaSeDeQvFEKBLz4QjcJoaiUh+mRrGjL8n9SDIOIZI bc/ZWEmIEpXIYIvnHYxJig442mdrRB+F/ijNcxKyuXUI6xnsqmZoyQ2yYqO+VFE8dYTN DdCnrRr23z4g0RO2VJI84sRzCZp+AsTuG/4Shuh9ddRYG73qnOYQwcCd3JPE//VVGAm2 OJkweuu1L0ZLhx95x5o6sIvYdJOJz9HD6q8YenEcEa4Ttri2UHsJLdv/U7uL2Dt0lhK5 d8i5H/ZJxbNeiMv8t7jlujt5PvbzfpVgQBMndcfuSCHrQS86W4aTO2bO8fDaUvLJY48c zrug== X-Received: by 10.170.114.81 with SMTP id g78mr13578033ykb.62.1425092330048; Fri, 27 Feb 2015 18:58:50 -0800 (PST) Received: from p4-bsd (c-71-226-13-107.hsd1.ga.comcast.net. [71.226.13.107]) by mx.google.com with ESMTPSA id n22sm4549942yho.1.2015.02.27.18.58.49 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 27 Feb 2015 18:58:49 -0800 (PST) Date: Fri, 27 Feb 2015 21:59:36 -0500 From: R0B_ROD To: freebsd-hackers@freebsd.org Subject: Connection Message-ID: <20150228025936.GA1640@p4-bsd> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Feb 2015 02:58:51 -0000 Hello, The optimization level -O3 in "CFLAGS and COPTFLAGS -O3 -pipe -funroll-loops" options in /etc/make.conf, have any relation to the CPU having SSE3 and SSE4A features?? I have built over a dozen kernels for my laptop with 10.1-STABLE. My last one was the smallest and it was an accident, I just kept messing around. The machine is truly responsive. Also adjusted ZFS and other sysctl tunables. I am very happy with BSD. I came from Linux with no real UNIX knowledge. Hoping I can learn asm/C. Thanks for the time. -Roberto Rodriguez Jr Lead Analyst Mach1ne Defense Foundati0n From owner-freebsd-hackers@FreeBSD.ORG Sat Feb 28 04:24:08 2015 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C43F06A for ; Sat, 28 Feb 2015 04:24:08 +0000 (UTC) Received: from gold.funkthat.com (gate2.funkthat.com [208.87.223.18]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "gold.funkthat.com", Issuer "gold.funkthat.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 6CB80E56 for ; Sat, 28 Feb 2015 04:24:07 +0000 (UTC) Received: from gold.funkthat.com (localhost [127.0.0.1]) by gold.funkthat.com (8.14.5/8.14.5) with ESMTP id t1S4O5l2064841 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 27 Feb 2015 20:24:05 -0800 (PST) (envelope-from jmg@gold.funkthat.com) Received: (from jmg@localhost) by gold.funkthat.com (8.14.5/8.14.5/Submit) id t1S4O5AP064840; Fri, 27 Feb 2015 20:24:05 -0800 (PST) (envelope-from jmg) Date: Fri, 27 Feb 2015 20:24:05 -0800 From: John-Mark Gurney To: R0B_ROD Subject: Re: Connection Message-ID: <20150228042405.GV32329@funkthat.com> References: <20150228025936.GA1640@p4-bsd> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150228025936.GA1640@p4-bsd> X-Operating-System: FreeBSD 9.1-PRERELEASE amd64 X-PGP-Fingerprint: 54BA 873B 6515 3F10 9E88 9322 9CB1 8F74 6D3F A396 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html X-TipJar: bitcoin:13Qmb6AeTgQecazTWph4XasEsP7nGRbAPE X-to-the-FBI-CIA-and-NSA: HI! HOW YA DOIN? can i haz chizburger? User-Agent: Mutt/1.5.21 (2010-09-15) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (gold.funkthat.com [127.0.0.1]); Fri, 27 Feb 2015 20:24:05 -0800 (PST) Cc: freebsd-hackers@freebsd.org X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Feb 2015 04:24:08 -0000 R0B_ROD wrote this message on Fri, Feb 27, 2015 at 21:59 -0500: > Hello, > The optimization level -O3 > in "CFLAGS and COPTFLAGS -O3 -pipe -funroll-loops" > options in /etc/make.conf, have any relation to the > CPU having SSE3 and SSE4A features?? Not really.. the kernel doesn't allow the use of the fpu, unless you use interface provided in fpu_kern(9)... Also, the amd64 ABI doesn't mandate the presence of SSSE3 or SSE4A, so unless you do special work (which I plan on doing), even userland can't make use of them unless specially instructed (or you build your own binaries and don't mind them not always working on other computers).. > I have built over a dozen kernels for my laptop > with 10.1-STABLE. My last one was the smallest > and it was an accident, I just kept messing around. > The machine is truly responsive. Also adjusted ZFS > and other sysctl tunables. I am very happy with BSD. > I came from Linux with no real UNIX knowledge. > Hoping I can learn asm/C. Thanks for the time. Glad you are enjoying it... -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not." From owner-freebsd-hackers@FreeBSD.ORG Sat Feb 28 15:03:45 2015 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 95D01688 for ; Sat, 28 Feb 2015 15:03:45 +0000 (UTC) Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "tensor.andric.com", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 52A30EDE for ; Sat, 28 Feb 2015 15:03:44 +0000 (UTC) Received: from [IPv6:2001:7b8:3a7::516:f95a:89aa:c45e] (unknown [IPv6:2001:7b8:3a7:0:516:f95a:89aa:c45e]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 8EA3C5C47; Sat, 28 Feb 2015 16:03:34 +0100 (CET) Subject: Re: Connection Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\)) Content-Type: multipart/signed; boundary="Apple-Mail=_47B52067-457A-44F5-8068-9F7FD407B4A1"; protocol="application/pgp-signature"; micalg=pgp-sha1 X-Pgp-Agent: GPGMail 2.5b5 From: Dimitry Andric In-Reply-To: <20150228025936.GA1640@p4-bsd> Date: Sat, 28 Feb 2015 16:03:24 +0100 Message-Id: <8567CEA9-55BC-4B36-9C6A-10BE47F74D3F@FreeBSD.org> References: <20150228025936.GA1640@p4-bsd> To: R0B_ROD X-Mailer: Apple Mail (2.2070.6) Cc: freebsd-hackers@freebsd.org X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Feb 2015 15:03:45 -0000 --Apple-Mail=_47B52067-457A-44F5-8068-9F7FD407B4A1 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii On 28 Feb 2015, at 03:59, R0B_ROD wrote: > The optimization level -O3 > in "CFLAGS and COPTFLAGS -O3 -pipe -funroll-loops" > options in /etc/make.conf, have any relation to the > CPU having SSE3 and SSE4A features?? This depends on which architecture you are using (e.g. amd64 or i386), and on the specific CPU type you are compiling for. The CPU type, set by CPUTYPE in make.conf, determines the features the compiler can use, such as different levels of SSE. The 'optimization level' selected by -O1, -O2 and -O3 is only a shortcut notation for selecting more and more specific optimization passes, in the hope that the resulting executable will run faster. The tradeoff is slower compilation, and in some cases unexpected side effects. The -pipe option is traditionally added to avoid writing temporary files, but it is mostly ineffective when using clang, since it produces object files directly from source, via internal transformations, instead of the classic model of having a separate preprocessor, compiler and assembler. Lastly, the -funroll-loops option is usually unnecessary with clang, as it is already automatically enabled for -O2 and higher. When it is able to use SSE, it will automatically try to vectorize loops and other parts of the code [1]. > I have built over a dozen kernels for my laptop > with 10.1-STABLE. In case of the kernel, you will not gain anything from SSE, as it is explicitly disabled for building the kernel code. In kernel context, no floating point or SSE instructions are allowed. -Dimitry [1] http://llvm.org/docs/Vectorizers.html --Apple-Mail=_47B52067-457A-44F5-8068-9F7FD407B4A1 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.26 iEYEARECAAYFAlTx2MQACgkQsF6jCi4glqMBjACgl9st1wGecFvEZILCpfh3KZcz irUAoL/pWbIqF7buxSeod95uZi5GRkj9 =fbeO -----END PGP SIGNATURE----- --Apple-Mail=_47B52067-457A-44F5-8068-9F7FD407B4A1-- From owner-freebsd-hackers@FreeBSD.ORG Sat Feb 28 18:31:15 2015 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 51259B26 for ; Sat, 28 Feb 2015 18:31:15 +0000 (UTC) Received: from 14.mo4.mail-out.ovh.net (14.mo4.mail-out.ovh.net [46.105.40.29]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 1210485D for ; Sat, 28 Feb 2015 18:31:14 +0000 (UTC) Received: from mail194.ha.ovh.net (gw6.ovh.net [213.251.189.206]) by mo4.mail-out.ovh.net (Postfix) with SMTP id 405FDFF8CB3 for ; Sat, 28 Feb 2015 15:51:51 +0100 (CET) Received: from b0.ovh.net (HELO queueout) (213.186.33.50) by b0.ovh.net with SMTP; 28 Feb 2015 16:51:51 +0200 Received: from nor75-4-82-224-154-80.fbx.proxad.net (HELO localhost.localdomain) (max@M00nBSD.net@82.224.154.80) by ns0.ovh.net with SMTP; 28 Feb 2015 16:51:50 +0200 Message-ID: <54F1D602.6050108@M00nBSD.net> Date: Sat, 28 Feb 2015 15:51:46 +0100 From: Maxime Villard MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Subject: Brainy: Set of 17 potential bugs Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Ovh-Tracer-Id: 15422013974438088667 X-Ovh-Remote: 82.224.154.80 (nor75-4-82-224-154-80.fbx.proxad.net) X-Ovh-Local: 213.186.33.20 (ns0.ovh.net) X-OVH-SPAMSTATE: OK X-OVH-SPAMSCORE: 50 X-OVH-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrfeejledrfeefucetufdoteggodetrfcurfhrohhfihhlvgemucfqggfjnecuuegrihhlohhuthemuceftddtnecuogetfeejfedqtdegucdlhedtmd X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 50 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrfeejledrfeefucetufdoteggodetrfcurfhrohhfihhlvgemucfqggfjnecuuegrihhlohhuthemuceftddtnecuogetfeejfedqtdegucdlhedtmd X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Feb 2015 18:31:15 -0000 Hi, I have been developing a C code scanner for a while, particularly good at finding kernel bugs. I've scanned the FreeBSD tree partially, and among the numerous results, I've put here a list of 17 bugs affecting the FreeBSD-10 Stable kernel: http://m00nbsd.net/59a47a86959c23b3f7c8bc495598dfde.html Found by The Brainy Code Scanner. More information: max at m00nbsd dot net Regards, Maxime Villard From owner-freebsd-hackers@FreeBSD.ORG Sat Feb 28 21:19:55 2015 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id DB33F12D for ; Sat, 28 Feb 2015 21:19:55 +0000 (UTC) Received: from mail-ig0-x229.google.com (mail-ig0-x229.google.com [IPv6:2607:f8b0:4001:c05::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id AAF5EA05 for ; Sat, 28 Feb 2015 21:19:55 +0000 (UTC) Received: by igdh15 with SMTP id h15so8672434igd.4 for ; Sat, 28 Feb 2015 13:19:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=6s+dAYt4P3KfGjcIXHMmoScMi8TSVu6FDmeVB2NZ7sE=; b=c9YjeBlwMR/ieWTlsOlmM0MJ6PCAJ78bqsawHmd3O58BnhPYBycVLMjJCsAt9uRT0E rSDy0/iC7UwZdxVc5z+95NWG3xS1kg7SJe8GPH07/DNfvHUZaWJmBzStUDl2bq2NILGS 4l04SYGA3NhDf9RytrdG39WvzZ8w3M/s/QlMYYIDUX9uq6t5ty712wcsZZWwIY7C8TEu Q1pxou5JujYU1ggfbgeTsFRIT31Zb5h+gWif4Ucc7HC788Rwv9ugQNsQ+ZFOY344OhFn Okc74TF663kSso9m7aT6TQdGi141X480jHHBBeSeQTdZ7xgPMUEi7EaA/qJR1Y5F1tZc yruA== MIME-Version: 1.0 X-Received: by 10.107.168.5 with SMTP id r5mr26697905ioe.87.1425158394960; Sat, 28 Feb 2015 13:19:54 -0800 (PST) Received: by 10.107.156.75 with HTTP; Sat, 28 Feb 2015 13:19:54 -0800 (PST) In-Reply-To: <54F1D602.6050108@M00nBSD.net> References: <54F1D602.6050108@M00nBSD.net> Date: Sat, 28 Feb 2015 16:19:54 -0500 Message-ID: Subject: Re: Brainy: Set of 17 potential bugs From: Ryan Stone To: Maxime Villard Content-Type: text/plain; charset=UTF-8 Cc: "freebsd-hackers@freebsd.org" X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Feb 2015 21:19:55 -0000 Interesting tool. I've looked at the two reports in sys/kern and they seem to be legitimate. The memory leak in uipc_accf.c is explicitly noted in a comment before accept_filt_add(). That probably indicates that it's a tough bug to fix. Ugh. The second, in uipc_syscalls.c, looks pretty simple. I've raised a code review for the fix: https://reviews.freebsd.org/D1989 Thanks for the report. I'll try to work my way through all of the issues.