On Wed, Aug 1, 2012 at 10:01 PM, Stefan Hajnoczi <stefa...@gmail.com> wrote: > On Tue, Jul 31, 2012 at 5:51 PM, Dong Xu Wang > <wdon...@linux.vnet.ibm.com> wrote: >> diff --git a/block.h b/block.h >> index c89590d..b523076 100644 >> --- a/block.h >> +++ b/block.h >> @@ -152,6 +152,8 @@ int bdrv_pwrite(BlockDriverState *bs, int64_t offset, >> const void *buf, int count); >> int bdrv_pwrite_sync(BlockDriverState *bs, int64_t offset, >> const void *buf, int count); >> +int bdrv_read_string(BlockDriverState *file, uint64_t offset, size_t n, >> + char *buf, size_t buflen); > > I suggest renaming the "file" argument to "bs" like all the other > block.h functions. > Okay. >> /** >> - * Read a string of known length from the image file >> - * >> - * @file: Image file >> - * @offset: File offset to start of string, in bytes >> - * @n: String length in bytes >> - * @buf: Destination buffer >> - * @buflen: Destination buffer length in bytes >> - * @ret: 0 on success, -errno on failure >> - * >> - * The string is NUL-terminated. >> - */ > > Please keep the doc comment. > > Stefan
Okay. thank you. >