From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.nokia.com ([192.100.122.230] helo=mgw-mx03.nokia.com) by bombadil.infradead.org with esmtps (Exim 4.69 #1 (Red Hat Linux)) id 1LRnen-000134-Gc for linux-mtd@lists.infradead.org; Tue, 27 Jan 2009 13:07:12 +0000 Subject: Re: [PATCH] UBI: ioctl instead of CONFIG_MTD_UBI_DEBUG_USERSPACE_IO From: Artem Bityutskiy To: Sidney Amani In-Reply-To: <1233047506-30435-1-git-send-email-seed@uffs.org> References: <1233047506-30435-1-git-send-email-seed@uffs.org> Content-Type: text/plain; charset="UTF-8" Date: Tue, 27 Jan 2009 15:06:59 +0200 Message-Id: <1233061619.7085.14.camel@localhost.localdomain> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Cc: Corentin Chary , linux-mtd@lists.infradead.org Reply-To: dedekind@infradead.org List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Tue, 2009-01-27 at 10:11 +0100, Sidney Amani wrote: > Introduce a new ioctl UBI_IOCSETPROP to set properties > on a volume. Also add the first property: > UBI_PROP_DIRECT_WRITE, this property is used to set the > ability to use direct writes in userspace > > Signed-off-by: Sidney Amani > Signed-off-by: Corentin Chary But I have to warn you, that now you are responsible for writing eraseblocks properly: 1. Sequentially, from the beginning to the end. 2. Writes have to be aligned to min I/O unit size 3. You cannot write more than once to the same place Be careful. -- Best regards, Artem Bityutskiy (Битюцкий Артём)