Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1JQjpP-0006xU-Du for mharc-grub-devel@gnu.org; Sun, 17 Feb 2008 08:45:11 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JQjpN-0006vQ-I4 for grub-devel@gnu.org; Sun, 17 Feb 2008 08:45:09 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JQjpL-0006tx-QU for grub-devel@gnu.org; Sun, 17 Feb 2008 08:45:09 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JQjpL-0006td-I8 for grub-devel@gnu.org; Sun, 17 Feb 2008 08:45:07 -0500 Received: from aybabtu.com ([69.60.117.155]) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JQjpL-0006Sf-59 for grub-devel@gnu.org; Sun, 17 Feb 2008 08:45:07 -0500 Received: from [192.168.10.6] (helo=thorin) by aybabtu.com with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1JQjp7-00032E-R3 for grub-devel@gnu.org; Sun, 17 Feb 2008 14:44:54 +0100 Received: from rmh by thorin with local (Exim 4.63) (envelope-from ) id 1JQjmd-0004At-7p for grub-devel@gnu.org; Sun, 17 Feb 2008 14:42:19 +0100 Date: Sun, 17 Feb 2008 14:42:19 +0100 From: Robert Millan To: The development of GRUB 2 Message-ID: <20080217134219.GB15576@thorin> References: <47B19C57.9020902@leat.rub.de> <20080213154224.GB30040@thorin> <47B32029.200@leat.rub.de> <20080213193534.GA28711@thorin> <47B3FCEC.6020107@leat.rub.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <47B3FCEC.6020107@leat.rub.de> Organization: free as in freedom X-Message-Flag: Worried about Outlook viruses? Switch to Thunderbird! www.mozilla.com/thunderbird X-Debbugs-No-Ack: true User-Agent: Mutt/1.5.13 (2006-08-11) X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. Subject: Re: [PATCH] Add option to grub-probe to accept system devices as arguments X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Feb 2008 13:45:09 -0000 On Thu, Feb 14, 2008 at 09:33:48AM +0100, Fabian Greffrath wrote: > Robert Millan schrieb: > >The last one sounds like a bug. > > Yes, it's from the current *unpatched* grub-probe. I mean that it should find the disk that contains /dev/hda1 device _node_. > >Which interface is easier to figure out > >for the user, one in which different actions require different parameters, > >or one where the same parameters act in completely different way depending > >on the file? > > There are no different actions! Whether you give a valid path or a block > device as an argument, the program behaves exactly the same. It does even > behave exactly as before (i.e. unpatched) if given a path. Accepting > devices as argument is simply an *added* feature. Consider the following: $ cat > /boot/grub/device.map << EOF (hd0) /dev/device1 (hd1) /dev/device2 EOF $ mount /dev/device1 /mnt $ touch /mnt/file $ grub-probe -t drive /mnt/file ??? $ ln -s nowhere /mnt/symlink $ grub-probe -t drive /mnt/symlink ??? $ mkfifo /mnt/fifo $ grub-probe -t drive /mnt/fifo ??? $ mknod /mnt/device2 $ grub-probe -t drive /mnt/device2 ??? Is the same output supposed to be printed in all "???" ? If not, what is in each one? -- Robert Millan I know my rights; I want my phone call! What use is a phone call… if you are unable to speak? (as seen on /.)