Re: [Xen-devel] [PATCH] libxc: check for null size file mapping

2018-02-12 Thread Wei Liu
On Mon, Feb 12, 2018 at 01:09:15PM +0100, Paul Semel wrote: > Changed the error message when trying to map a null size file. > When doing `xl create` command, we get an Invalid Kernel error > when the file size is greater than zero. For zero length files, we are > falling in the mmap error, and we

[Xen-devel] [PATCH] libxc: check for null size file mapping

2018-02-12 Thread Paul Semel
Changed the error message when trying to map a null size file. When doing `xl create` command, we get an Invalid Kernel error when the file size is greater than zero. For zero length files, we are falling in the mmap error, and we get an `Invalid parameter` error, which is not explicit. With this c