From owner-freebsd-hackers@FreeBSD.ORG Sun Apr 9 13:30:55 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1D98016A406 for ; Sun, 9 Apr 2006 13:30:55 +0000 (UTC) (envelope-from zazubrik@mail.ru) Received: from mx2.mail.ru (mx2.mail.ru [194.67.23.122]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8317643D45 for ; Sun, 9 Apr 2006 13:30:52 +0000 (GMT) (envelope-from zazubrik@mail.ru) Received: from [83.237.28.236] (port=54373 helo=[192.168.0.8]) by mx2.mail.ru with esmtp id 1FSa0A-000LX7-00 for freebsd-hackers@freebsd.org; Sun, 09 Apr 2006 17:30:50 +0400 Mime-Version: 1.0 (Apple Message framework v749.3) In-Reply-To: <44370C06.900@san.rr.com> References: <1144042356.824.16.camel@shumai.marcuscom.com> <20060406234239.GB1913@dice.stsp.lan> <200604071013.38486.aren.tyr@gawab.com> <200604071619.18686.vvp@unicom.tomica.ru> <44370C06.900@san.rr.com> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <0C0573D0-6988-4615-839C-F3971185341B@mail.ru> Content-Transfer-Encoding: 7bit From: Artem Ignatiev Date: Sun, 9 Apr 2006 17:30:49 +0400 To: freebsd-hackers@freebsd.org X-Mailer: Apple Mail (2.749.3) Subject: Re: RFC: Adding a ``user'' mount option 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: Sun, 09 Apr 2006 13:30:55 -0000 On 08.04.2006, at 5:04, Jeremy Baggs wrote: > I suppose it would be nice to have something that works "out of the > box", but the solution I have been using > is group permissions on the devices and then making the mount point > in fstab relative instead of absolute. ie: > > /dev/cd0 cdrom cd9660 ro,noauto 0 0 > > Each user has a cdrom directory under their home directory. You > still need mount points designated for all > possible devices though. Does anyone know how Darwin / OsX are > handling their auto-mount magic? > There is a /Volumes folder, and each time user inserts usb flash or cd, the directory is created in that folder, named after a volume label, and mounts the media into newly created directory. Looks like the ``diskarbitrationd'' process is responsible for this.