From owner-freebsd-current@FreeBSD.ORG Thu Jan 3 15:58:22 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id CB2B299 for ; Thu, 3 Jan 2013 15:58:22 +0000 (UTC) (envelope-from se@freebsd.org) Received: from nm6.bullet.mail.ird.yahoo.com (nm6.bullet.mail.ird.yahoo.com [77.238.189.63]) by mx1.freebsd.org (Postfix) with ESMTP id EFB6412B for ; Thu, 3 Jan 2013 15:58:21 +0000 (UTC) Received: from [77.238.189.232] by nm6.bullet.mail.ird.yahoo.com with NNFMP; 03 Jan 2013 15:58:19 -0000 Received: from [217.146.188.63] by tm13.bullet.mail.ird.yahoo.com with NNFMP; 03 Jan 2013 15:58:19 -0000 Received: from [127.0.0.1] by smtp105.mail.ird.yahoo.com with NNFMP; 03 Jan 2013 15:58:19 -0000 X-Yahoo-Newman-Id: 750553.4072.bm@smtp105.mail.ird.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: nWMt1pQVM1mDOMMQUQrNtd1wP.qRcsW0a465oUs3ywlRfb7 rwl0c4pSIcfyvIj1Xm3aq8wu_rslQHCR40IrjOeLK6VwrmQRVji_EBux5yBq .A.GrH54OqS20qHz.EyHFM8705Eq1lwbOvPPC8VU_UrjzNmHYUYswig1dUzi mUqYyt57TPDYqNCOP3Dqpds6xHvSGT0wHaQWcAWDFMwppR8NfIdTDY80O1yM 6V6QxQOhwGWxccIzbM_hccv3eWJjNHtKXQFh3F1P_9KjjfgwErGRQ0Yj0tYg FvE5cnrPa99vDTJhh3wRoeWnZZH1N_aNvBJqYnuSjvFL6mfpApkLKBm4Rl0B BvFhcZhsaCJQI1hT5lPvWoPk67N3HD7Y4HlTqVNUKGeQYKuIXeiUt2xEgHER eft8VS8i7CJh01qh12r5Dcqkij.SE7p5VUoaMy8Gn8ARd X-Yahoo-SMTP: iDf2N9.swBDAhYEh7VHfpgq0lnq. Received: from [192.168.119.11] (se@87.158.27.114 with plain) by smtp105.mail.ird.yahoo.com with SMTP; 03 Jan 2013 07:58:19 -0800 PST Message-ID: <50E5AA95.5080603@freebsd.org> Date: Thu, 03 Jan 2013 16:58:13 +0100 From: Stefan Esser User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: freebsd-current@freebsd.org Subject: Re: installworld failure due to cross-device links References: <50E42264.4010609@freebsd.org> <50E4357B.7020400@freebsd.org> In-Reply-To: <50E4357B.7020400@freebsd.org> X-Enigmail-Version: 1.4.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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, 03 Jan 2013 15:58:22 -0000 Am 02.01.2013 14:26, schrieb Nathan Whitehorn: > On 01/02/13 07:04, Stefan Esser wrote: >> I'd be interested in the general policy on LINKS vs. SYMLINKS >> between directories that might end up on different file systems. >> >> There seems to be an assumption that system directories in /usr >> (e.g. /usr/bin, /usr/sbin, /usr/libexec) are on the same file >> system, but I do not think that this assumption is documented. >> >> I'm using a ZFS only installation of -CURRENT and have separate file >> systems for several of the directories in / and /usr, that usually >> share a file system (e.g. /bin, /sbin, but also /usr/bin/, /usr/sbin >> and /usr/libexec are independent file systems). >> >> An older case is the link from /usr/bin/chgrp to /usr/sbin/chown >> (see usr.sbin/chown/Makefile), which is easily fixed by using a >> SMYLINK instead of a LINK. >> >> And now there is usr.sbin/bsdinstall/partedit/Makefile, which as of >> r244859 creates a link from /usr/libexec/bsdinstall to /usr/sbin/sade. >> >> This breaks with /usr/bin and /usr/sbin on different file systems, >> while it should not according to the commit message: >> > > Thanks for the patch! I've committed it (slightly modified) as r244958. > I haven't taken any action on the chgrp/chown issue, though. Thanks for the fix. Seems I had a wrong idea of the semantics of the (SYM)LINKS macro, as I had assumed that the build target would be linked to the list of names (instead of pairs of source/dest). I did not expect you to do anything with chown/chgrp, but I still think there should be a policy on whether hard links may be used to connect files in different directories (which might be in different file systems). Regards, STefan