* [PATCH 5/5 v3] [MTD-UTILS] Unified reading from standard input and from file
@ 2009-08-06 0:41 Jehan Bing
0 siblings, 0 replies; only message in thread
From: Jehan Bing @ 2009-08-06 0:41 UTC (permalink / raw)
To: linux-mtd@lists.infradead.org
Allow writing the OOB when using the standard input.
Signed-off-by: Jehan Bing <jehan@orb.com>
--- a/nandwrite.c 2009-08-05 15:48:25.000000000 -0700
+++ b/nandwrite.c 2009-08-05 15:48:49.000000000 -0700
@@ -392,12 +392,6 @@ int main(int argc, char * const argv[])
goto restoreoob;
}
- /* For now, don't allow writing oob when reading from standard input. */
- if (ifd == STDIN_FILENO && writeoob) {
- fprintf(stderr, "Can't write oob when reading from standard input.\n");
- goto closeall;
- }
-
pagelen = meminfo.writesize + ((writeoob) ? meminfo.oobsize : 0);
/*
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-08-06 0:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-06 0:41 [PATCH 5/5 v3] [MTD-UTILS] Unified reading from standard input and from file Jehan Bing
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).