qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] iSCSI: add configuration variables for iSCSI


From: Michael Tokarev
Subject: Re: [Qemu-devel] [PATCH] iSCSI: add configuration variables for iSCSI
Date: Thu, 26 Jan 2012 18:55:15 +0400
User-agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:8.0) Gecko/20111120 Icedove/8.0

26.01.2012 13:54, ronnie sahlberg wrote:
Ok   so what about this

You use a filename starting with "/proc/self/fd/"  and you dont have a
proc filesystem mounted? you are on your own!

No you're not:

IF ! STRNCMP (filename, "/proc/self/fd/", 14)  THEN
          fopen(filename, "r")
ELSE
         fdopen(atoi(filename+14), "r")
FI

If the filename starts with /proc/self/fd/, qemu will
not try to open that file but parse the rest of the
string as a filedescriptor number.

/mjt



reply via email to

[Prev in Thread] Current Thread [Next in Thread]