From owner-freebsd-hackers@FreeBSD.ORG Fri Dec 25 13:21:19 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6A8DB106568B for ; Fri, 25 Dec 2009 13:21:19 +0000 (UTC) (envelope-from aavzz@yandex.ru) Received: from forward5.mail.yandex.net (forward5.mail.yandex.net [77.88.46.21]) by mx1.freebsd.org (Postfix) with ESMTP id 264338FC1A for ; Fri, 25 Dec 2009 13:21:19 +0000 (UTC) Received: from smtp5.mail.yandex.net (smtp5.mail.yandex.net [77.88.47.12]) by forward5.mail.yandex.net (Yandex) with ESMTP id 5C9768F8072 for ; Fri, 25 Dec 2009 16:08:44 +0300 (MSK) Received: from [192.168.1.10] (addr-44-20.telix.ru [81.201.20.44]) by smtp5.mail.yandex.net (Yandex) with ESMTPA id 218D379804A for ; Fri, 25 Dec 2009 16:08:44 +0300 (MSK) From: Alex Zimnitsky To: freebsd-hackers@freebsd.org Content-Type: text/plain Date: Fri, 25 Dec 2009 16:07:56 +0300 Message-Id: <1261746476.2925.22.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 (2.22.3.1-1.fc9) Content-Transfer-Encoding: 7bit X-Yandex-TimeMark: 1261746524 X-Yandex-Spam: 1 X-Yandex-Front: smtp5.mail.yandex.net Subject: mount misinforming X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Dec 2009 13:21:19 -0000 Hello, hackers in the output given by mount some entries may be misinforming when an fs is mounted in a chrooted environment. here is the case: #mkdir /var/somedir #cd /usr/src #make DESTDIR=/var/somedir buildworld installworld distribution #chroot /var/somedir #mount -t devfs devfs /dev #mount two entries for /dev are listed - one for chrooted and one for parent environment. may be parent environment's /dev shoud be marked somehow, may be it should not be listed at all. #^D #mount two entries for /dev are listed. one of them really should be /var/somedir/dev the questions are 1) should the output be changed? 2) is there something in the kernel design which prevents it from being done easily? Alex