Skip to contentSkip to conversation

Unified reading from standard input and from file

PATCH In review Jehan Bing 1 participant 1 message Aug 6, 2009 Memory technology devices (MTD)

lore
Share & tools
lore

Jehan Bing

author
#0 lore raw

PATCH v3 5/5 Unified reading from standard input and from file

Allow writing the OOB when using the standard input.

nandwrite.c +0 -0
@@ -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);

	/*