From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752131AbdGYOYV (ORCPT ); Tue, 25 Jul 2017 10:24:21 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:37160 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751651AbdGYOYT (ORCPT ); Tue, 25 Jul 2017 10:24:19 -0400 Date: Tue, 25 Jul 2017 16:24:15 +0200 From: Pali =?utf-8?B?Um9ow6Fy?= To: Richard Weinberger Cc: Joern Engel , David Woodhouse , Brian Norris , Boris Brezillon , Marek Vasut , Richard Weinberger , Cyrille Pitchen , Artem Bityutskiy , "linux-mtd@lists.infradead.org" , LKML Subject: Re: [PATCH 4/5] mtd: block2mtd: Add support for deleting block2mtd mapping Message-ID: <20170725142415.GK30901@pali> References: <1496418222-23483-1-git-send-email-pali.rohar@gmail.com> <1496418222-23483-5-git-send-email-pali.rohar@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Friday 21 July 2017 21:56:41 Richard Weinberger wrote: > Pali, > > On Fri, Jun 2, 2017 at 5:43 PM, Pali Rohár 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? -- Pali Rohár pali.rohar@gmail.com