Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1704799

Re: [PATCH 4/5] mtd: block2mtd: Add support for deleting block2mtd mapping

From Richard Weinberger <richard@nod.at>
Newsgroups linux.kernel
Subject Re: [PATCH 4/5] mtd: block2mtd: Add support for deleting block2mtd mapping
Date 2017-08-06 11:40 +0200
Message-ID <ubqcp-qH-13@gated-at.bofh.it> (permalink)
References <tNWZP-34m-7@gated-at.bofh.it> <tNWZQ-34m-23@gated-at.bofh.it> <u5MfD-yv-1@gated-at.bofh.it> <u790v-3Vq-11@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Pali,

Am 25.07.2017 um 16:24 schrieb Pali Rohár:
> On Friday 21 July 2017 21:56:41 Richard Weinberger wrote:
>> Pali,
>>
>> On Fri, Jun 2, 2017 at 5:43 PM, Pali Rohár <pali.rohar@gmail.com> wrote:
>>> This patch allows user to delete block2mtd mapping via parameters file
>>> /sys/module/block2mtd/parameters/block2mtd
>>>
>>> Syntax is "del=device", e.g.:
>>>
>>> $ echo -n del=/dev/loop0 > /sys/module/block2mtd/parameters/block2mtd
>>
>> As I wrote in an earlier mail, I hate this interface.
>> I suggest adding a decent ioctl based interface for dynamic block2mtd's.
> 
> ioctl interface has a problem that cannot be easily used from shell. It
> needs to have another tool which uses it. On the other hand sysfs
> interface can be used from bash script which is better.
> 
> Any idea for better interface without need for ioctl?

No, please use ioctl and add a proper tool to mtd-utils.
in MTD we use ioctl for all non-trivial interfaces. :-)

Thanks,
//richard

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

Re: [PATCH 4/5] mtd: block2mtd: Add support for deleting block2mtd  mapping Richard Weinberger <richard@nod.at> - 2017-08-06 11:40 +0200

csiph-web