]> git.baikalelectronics.ru Git - kernel.git/commit
UBI: make the control character device non-seekable
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Mon, 21 Mar 2011 14:50:18 +0000 (16:50 +0200)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Thu, 14 Apr 2011 08:34:40 +0000 (11:34 +0300)
commit20b95c75b0550a4319fa1d64bd165cf87c7c8494
tree2a84d4397dec41c4e298738c704ab694d30326ad
parenta49ec2f89ef7d5107cf62938f259cf1ba29f99d3
UBI: make the control character device non-seekable

This patch makes the UBI control device (/dev/ubi_ctrl) non-seekable.
The seek operation does is not applicable to this file, so it is
cleaner to explicitly return error (which the added 'no_llseek()')
does than trying to change the position (which the removed
'default_llseek()' does).

This is an API break, but the only known user of this interface is
mtd-utils which does not need the seeking functionality. And any app
which relies on this is broken, but I'm not aware of such apps.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
drivers/mtd/ubi/cdev.c