|
|
|
|
|
|
|
|
|
|
xen-devel
Re: [Xen-devel] [PATCH 03 of 24] xenpaging: use PERROR to print errno
On Tue, Oct 04, George Dunlap wrote:
> On Mon, Oct 3, 2011 at 4:54 PM, Olaf Hering <olaf@xxxxxxxxx> wrote:
> > seek_ret = lseek(fd, i << PAGE_SHIFT, SEEK_SET);
> > + if (seek_ret == -1)
> > + {
> > + ret = -errno;
> > + goto err;
> > + }
>
> Wouldn't it be more idiomatic to make both this check and the other
> check in the function:
> * check for seek_ret < 0 (rather than -1)
The man page said its -1, now that I read it again it says (off_t)-1, so
my change above should be updated to comply with the man page.
> * make file_op() return -1
> * Let the caller read errno? (Rather than returning -errno)?
Yes, I will change this in a new patch.
Olaf
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-devel] [PATCH 00 of 24] xenpaging fixes for xen-unstable, Olaf Hering
- [Xen-devel] [PATCH 09 of 24] xenpaging: improve mainloop exit handling, Olaf Hering
- [Xen-devel] [PATCH 17 of 24] libxl: add libxl__spawn_confirm_offspring_startup, Olaf Hering
- [Xen-devel] [PATCH 11 of 24] xenpaging: retry unpageable gfns, Olaf Hering
- [Xen-devel] [PATCH 10 of 24] libxc: add bitmap_clear function, Olaf Hering
- [Xen-devel] [PATCH 16 of 24] libxl: use libxl__wait_for_offspring for device model, Olaf Hering
- [Xen-devel] [PATCH 24 of 24] xenpaging: libxl support, Olaf Hering
- [Xen-devel] [PATCH 18 of 24] libxl: use libxl__spawn_confirm_offspring_startup for device model, Olaf Hering
- [Xen-devel] [PATCH 03 of 24] xenpaging: use PERROR to print errno, Olaf Hering
- [Xen-devel] [PATCH 01 of 24] xenpaging: remove filename from comment, Olaf Hering
- [Xen-devel] [PATCH 07 of 24] xenpaging: move page add/resume loops into its own function, Olaf Hering
- [Xen-devel] [PATCH 23 of 24] xenpaging: add cmdline interface for pager, Olaf Hering
- [Xen-devel] [PATCH 15 of 24] libxl: add libxl__wait_for_offspring function, Olaf Hering
- [Xen-devel] [PATCH 05 of 24] xenpaging: remove xc_dominfo_t from paging_t, Olaf Hering
- [Xen-devel] [PATCH 20 of 24] xenpaging: add XEN_PAGING_DIR / libxl_xenpaging_dir_path(), Olaf Hering
- [Xen-devel] [PATCH 04 of 24] xenpaging: update xenpaging_init, Olaf Hering
- [Xen-devel] [PATCH 02 of 24] xenpaging: remove obsolete comment in resume path, Olaf Hering
- [Xen-devel] [PATCH 08 of 24] xenpaging: compare both token and path when checking for @releaseDomain event, Olaf Hering
- [Xen-devel] [PATCH 14 of 24] libxl: add pid path to libxl__spawner_starting, Olaf Hering
|
|
|
|
|