From owner-svn-src-all@FreeBSD.ORG Tue Apr 26 08:18:12 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3912110657DA; Tue, 26 Apr 2011 08:18:12 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 0C5B18FC14; Tue, 26 Apr 2011 08:18:10 +0000 (UTC) Received: by bwz12 with SMTP id 12so462161bwz.13 for ; Tue, 26 Apr 2011 01:18:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:sender:message-id:date:from:user-agent :mime-version:to:cc:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=FAv74fmn2EjrrM6XiV5R97GKWQuJzn2imGOfiq9kf5s=; b=svpNafyc6iq8QDD7owZtGiDAMyg6h4NYj3EUxHvT2tjqZJiK1uTz/zKF08MidZWkU0 KpXxn/RFmeC4B+9zPWREx0rjszY3mKVfahyytmr0Rbb70RlQdKlSPNYnkwyxkPBsMJNj 1pNzxHKkKf2dK8mfIKSnEsb8ajXt1+I2HZu9I= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=hNdxK36uObiLZjAHXChmaZ4sLShTesyTn1Dk4DExVZY8VkZ+lGEMrpL0BspStO1Jhq dN/e8opvmtEjt6gE4IHAzbKuBRNeGSm2SKMwRqrquPeNFKhzoH3kicF/Dzv/hFG9Q3WU ynpY0TF5kc3hl/kOHoz9/hjZuIGjZ15gb9/3A= Received: by 10.204.20.74 with SMTP id e10mr408559bkb.148.1303805889802; Tue, 26 Apr 2011 01:18:09 -0700 (PDT) Received: from mavbook.mavhome.dp.ua (pc.mavhome.dp.ua [212.86.226.226]) by mx.google.com with ESMTPS id l1sm3701423bkl.1.2011.04.26.01.18.08 (version=SSLv3 cipher=OTHER); Tue, 26 Apr 2011 01:18:09 -0700 (PDT) Sender: Alexander Motin Message-ID: <4DB67FBE.1050707@FreeBSD.org> Date: Tue, 26 Apr 2011 11:18:06 +0300 From: Alexander Motin User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.15) Gecko/20110310 Thunderbird/3.1.9 MIME-Version: 1.0 To: Pawel Jakub Dawidek References: <20110425134531.GA4391@garage.freebsd.pl> <50385B7B-7EC8-4BC3-8F88-83F9EB4096FB@bsdimp.com> <4DB5A166.9010302@FreeBSD.org> <67F62848-FAA3-4C46-A95A-DA7C82281898@bsdimp.com> <4DB5B0A9.4030805@FreeBSD.org> <20110426070020.GC2472@garage.freebsd.pl> <4DB6721B.3020600@FreeBSD.org> <20110426073517.GF2472@garage.freebsd.pl> <4DB67939.6080301@FreeBSD.org> <20110426080222.GG2472@garage.freebsd.pl> In-Reply-To: <20110426080222.GG2472@garage.freebsd.pl> Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r220982 - in head: . sys/amd64/conf sys/arm/conf sys/conf sys/i386/conf sys/ia64/conf sys/mips/conf sys/mips/malta sys/pc98/conf sys/powerpc/conf sys/sparc64/conf sys/sun4v/conf X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Apr 2011 08:18:12 -0000 On 26.04.2011 11:02, Pawel Jakub Dawidek wrote: > Now, what about fstab? There is a problem to figure out which disk we > booted from once we enter the kernel. I was wondering if we could detect > that someone is trying to mount root which from 'ad[0-9]+' and > then we could scan all ada[0-9]+ looking for UFS file system and > /etc/fstab in there and / entry which matches vfs.root.mountfrom variable. > This should cover 99% of cases. 1% is for cases where another disk have > identical partitioning scheme and /etc/fstab file. There also might be > cases where someone defines vfs.root.mountfrom in /boot/loader.conf and > doesn't really use /etc/fstab. I think it will be unpredictable. Many disks may have s1a and especially s1d. What do you think about this: http://docs.freebsd.org/cgi/mid.cgi?4DB54BA9.5050901 ? I've found that zpool utility don't likes symbolic links, but except this and together with fixing hardcoding problem IMHO it looks not bad. -- Alexander Motin