Re: blklimits: new command

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, May 13, 2010 at 10:35:47AM +0100, Pádraig Brady wrote:
> On 13/05/10 09:31, Karel Zak wrote:
> > 
> > The  blklimits  program  is the command-line interface to working with
> > I/O topology support in the libblkid library. For example:
> > 
> > 	# blklimits /dev/sdb
> > 	alignment offset:          0
> > 	minimum io size:        4096
> > 	optimal io size:       32768
> > 	logical sector size:     512
> > 	physical sector size:   4096
> 
> Could you mention why you chose to have a separate command
> rather than adding extra options to `blockdev`?

 Good point.
 
 The blockdev already supports topology ioctls, but libblkid provides
 more portable API. The ioctls are supported since kernel 2.6.32, and
 the stuff is exported by /sys since 2.6.31. The libblkid is able to
 read the information directly from DM, MD, LVM and EVMS on older
 kernels. The library provides unified API for all these probing
 methods and we need any command-line interface for this functionality
 (for fdisk/parted, mkfs debugging etc.).

 I'm not sure if link blockdev(8) against libblkid is a good idea.
 From my point of view is blockdev(8) simple wrapper for ioctls.

 (I'm not happy with another new command, so suggestions are welcomed.)

    Karel

-- 
 Karel Zak  <kzak@xxxxxxxxxx>
 http://karelzak.blogspot.com
--
To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux