From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: lczerner@redhat.com Date: Thu, 13 Sep 2012 11:52:11 -0400 (EDT) From: =?ISO-8859-15?Q?Luk=E1=A8_Czerner?= To: Kay Sievers cc: Karel Zak , =?ISO-8859-15?Q?Luk=E1=A8_Czerner?= , util-linux@vger.kernel.org Subject: Re: [PATCH] blkdiscard: add new command In-Reply-To: Message-ID: References: <1347486555-24330-1-git-send-email-lczerner@redhat.com> <20120913135727.GC13016@x2.net.home> MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="269113540-1240749223-1347551532=:15781" List-ID: This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --269113540-1240749223-1347551532=:15781 Content-Type: TEXT/PLAIN; charset=UTF-8 Content-Transfer-Encoding: 8BIT On Thu, 13 Sep 2012, Kay Sievers wrote: > Date: Thu, 13 Sep 2012 17:33:49 +0200 > From: Kay Sievers > To: Karel Zak > Cc: Lukáš Czerner , util-linux@vger.kernel.org > Subject: Re: [PATCH] blkdiscard: add new command > > On Thu, Sep 13, 2012 at 3:57 PM, Karel Zak wrote: > > > It's UNIX, it's not so unusual that utils do one thing and do it well ;-) > > How about looking at the sensible part of UNIX? I can provide you an > endless list of crazy ideas in UNIX if you need that. And one tool per > ioctl is certainly in that list. :) Not necessarily. blockdev(8) is meant to provide user with a tool to invoke simple block device ioctl which usually does not require any arguments (except few with one argument). Changing its format to be blockdev and extend it would certainly take away some of the nifty simplicity of that tool. That said, there is nothing wrong with having small and simple tool doing one thing and doing it right, in fact quite the opposite - it _is_ a good thing. And BTH I am not really suggesting one tool per ioctl, but blkdiscard is sufficiently different then those found in blockdev anyway (mostly -get, few -set and one -flush). In fact thinking about it some more, I am really in favour of separate tool for this functionality. BTW since when it's wrong to have such small and simple tools instead of multiplexing everything into one blob (Core OS anyone ?:)) ? -Lukas > > Kay > --269113540-1240749223-1347551532=:15781--