summaryrefslogtreecommitdiff
path: root/flash_unlock.c
diff options
context:
space:
mode:
authorJehan Bing <jehan@orb.com>2009-08-05 17:40:55 -0700
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2009-08-11 16:14:20 +0300
commit07005d915d6a79dbdee14b0c4360df5058c3a98b (patch)
tree86726e622c18c76e39bad4bf2a7dcd4c7bfbab3f /flash_unlock.c
parent8c7e9e0936fcb18f1c95e618c2a2bb138a3c9e35 (diff)
nandwrite: unified reading from standard input and from file - part 3
Nandwrite tries to use lseek() when failing to write on a page. lseek() will fail when used on the standard input so nandwrite fails. This code replaces lseek with a buffer. When the data is read, it is put in a buffer (filebuf). This buffer is reset at each block boundary. So a "seek" just means reading from the beginning of the buffer. writebuf and oobreadbuf are now just pointers to locations in filebuf. Signed-off-by: Jehan Bing <jehan@orb.com> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'flash_unlock.c')
0 files changed, 0 insertions, 0 deletions