[Sheepdog] [PATCH] collie: allow explicit read sizes that are not a multiple of 512
Christoph Hellwig
hch at infradead.org
Tue May 15 18:54:47 CEST 2012
Collie vdi read already does can handle read sizes smaller than a block,
which is used when reading data to stdout without an explicit size argument.
Also allow using this code when an explicit size argument is given.
Signed-off-by: Christoph Hellwig <hch at lst.de>
---
collie/vdi.c | 4 ----
1 file changed, 4 deletions(-)
Index: sheepdog/collie/vdi.c
===================================================================
--- sheepdog.orig/collie/vdi.c 2012-05-15 11:02:08.399956846 +0200
+++ sheepdog/collie/vdi.c 2012-05-15 18:44:54.711985004 +0200
@@ -1118,10 +1118,6 @@ static int vdi_read(int argc, char **arg
ret = parse_option_size(argv[optind++], &total);
if (ret < 0)
return EXIT_USAGE;
- if (total % 512 != 0) {
- fprintf(stderr, "Read length must be block-aligned\n");
- return EXIT_USAGE;
- }
}
}
More information about the sheepdog
mailing list