public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* Userspace write to UBI partitions
@ 2012-02-07 15:20 Ricard Wanderlof
  2012-02-07 16:29 ` Shmulik Ladkani
  0 siblings, 1 reply; 11+ messages in thread
From: Ricard Wanderlof @ 2012-02-07 15:20 UTC (permalink / raw)
  To: Linux mtd


Is it possible to do a userspace write to a UBI volume as if it were plain 
flash memory, i.e. should I be able to do "cat somefile > /dev/ubi0_0" ? I 
get a 'Write Error: Operation not permitted' when I do this (Linux 2.6.35) 
but I'm pretty sure that I've used UBI volumes that way in the past, may 
have been with older kernels then.

Since there are ioctls for volume update and atomic logical ereasblock 
change, it would seem natural that writing to UBI volumes must be preceded 
by these ioctls, still I can't seem to see anywhere that doing a plain 
write would not be allowed, and as I say I'm pretty sure I've done so in 
the past.

/Ricard
-- 
Ricard Wolf Wanderlöf                           ricardw(at)axis.com
Axis Communications AB, Lund, Sweden            www.axis.com
Phone +46 46 272 2016                           Fax +46 46 13 61 30

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2012-02-08 13:56 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-07 15:20 Userspace write to UBI partitions Ricard Wanderlof
2012-02-07 16:29 ` Shmulik Ladkani
2012-02-07 16:36   ` Ricard Wanderlof
2012-02-07 17:09     ` Shmulik Ladkani
2012-02-08  7:35       ` Ricard Wanderlof
2012-02-08 12:00         ` Artem Bityutskiy
2012-02-08 12:20           ` Ricard Wanderlof
2012-02-08 11:59     ` Artem Bityutskiy
2012-02-08 12:18       ` Ricard Wanderlof
2012-02-08 13:49         ` Atlant Schmidt
2012-02-08 13:58           ` Artem Bityutskiy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox