[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] iSCSI: add configuration variables for iSCSI
From: |
ronnie sahlberg |
Subject: |
Re: [Qemu-devel] [PATCH] iSCSI: add configuration variables for iSCSI |
Date: |
Thu, 26 Jan 2012 20:54:11 +1100 |
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!
regards
ronnie sahlberg
On Thu, Jan 26, 2012 at 8:27 PM, Kevin Wolf <address@hidden> wrote:
> Am 26.01.2012 10:18, schrieb ronnie sahlberg:
>> Kevin,
>>
>> Collissions are bad, but what about
>>
>> IF ! STRNCMP (filename, "/proc/self/fd/", 14) THEN
>> fopen(filename, "r")
>> ELSE
>> fdopen(atoi(filename+14), "r")
>> FI
>>
>> modulo better validation for the atio() arguments.
>>
>>
>> Probability of anyone using "/proc/self/fd/" as a prefix for normal
>> files is very small.
>> Small enough it will be justifiable to say "do that and you are on your
>> own". ?
>
> Interesting idea. Maybe that could work.
>
> Kevin
0001-READCONFIG-make-proc-self-fd-a-magic-prefix-to-refer.patch.gz
Description: GNU Zip compressed data
0001-READCONFIG-make-proc-self-fd-a-magic-prefix-to-refer.patch
Description: Text Data
- [Qemu-devel] [PATCH] Add configuration variables for iscsi, Ronnie Sahlberg, 2012/01/21
- [Qemu-devel] [PATCH] iSCSI: add configuration variables for iSCSI, Ronnie Sahlberg, 2012/01/21
- Re: [Qemu-devel] [PATCH] iSCSI: add configuration variables for iSCSI, Eric Blake, 2012/01/23
- Re: [Qemu-devel] [PATCH] iSCSI: add configuration variables for iSCSI, ronnie sahlberg, 2012/01/25
- Re: [Qemu-devel] [PATCH] iSCSI: add configuration variables for iSCSI, Eric Blake, 2012/01/25
- Re: [Qemu-devel] [PATCH] iSCSI: add configuration variables for iSCSI, ronnie sahlberg, 2012/01/25
- Re: [Qemu-devel] [PATCH] iSCSI: add configuration variables for iSCSI, Kevin Wolf, 2012/01/26
- Re: [Qemu-devel] [PATCH] iSCSI: add configuration variables for iSCSI, ronnie sahlberg, 2012/01/26
- Re: [Qemu-devel] [PATCH] iSCSI: add configuration variables for iSCSI, Kevin Wolf, 2012/01/26
- Re: [Qemu-devel] [PATCH] iSCSI: add configuration variables for iSCSI,
ronnie sahlberg <=
- Re: [Qemu-devel] [PATCH] iSCSI: add configuration variables for iSCSI, Michael Tokarev, 2012/01/26
- Re: [Qemu-devel] [PATCH] iSCSI: add configuration variables for iSCSI, Michael Tokarev, 2012/01/26
- Re: [Qemu-devel] [PATCH] iSCSI: add configuration variables for iSCSI, Daniel P. Berrange, 2012/01/26
- Re: [Qemu-devel] [PATCH] iSCSI: add configuration variables for iSCSI, Michael Tokarev, 2012/01/26