| To: | Avi Kivity <avi@xxxxxxxxxxxx> |
|---|---|
| Subject: | Re: AIO read returns negative number for bytes read |
| From: | Alireza Haghdoost <haghdoost@xxxxxxxxx> |
| Date: | Mon, 16 Nov 2015 09:19:32 -0600 |
| Cc: | xfs@xxxxxxxxxxx, linux-aio@xxxxxxxxx |
| Delivered-to: | xfs@xxxxxxxxxxx |
| Dkim-signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=nrY630dydUxMRDsUIrv5K8j/impibjZLze19ma1J9jQ=; b=TfJiEni0g3ta6+uelCehLvHzmb4TlCFYqT6wJr3Q3ysY401c9G/zMDDsZENS/Vmuve CGJE5F5zE/9j6HR8FYcTilvOZ9wEKodUxnD5h6SOfF5TTzzZQJmlCFHnF37GN8Z6FjaQ nBMYoSnIIIvFV6ndR9oAvUjCc6RfetaGEaQGUh0OmgZHQbzQSyOyWoS+oVs9s7Tzb8hI 6sCMyb70mjv9EpiiTT4jOE2ng8MnHd4KNJpsc5CGAQ1Uobj3Szfp+5LZPh6RBREiZAzI aemtrf7U6GLVxUb0rXsUYbNNLo8V3X0wNAVj0jIhqyN52NExkMSfhmOpXLvBoR3b5gMk rbww== |
| In-reply-to: | <564883BD.8070607@xxxxxxxxxxxx> |
| References: | <564883BD.8070607@xxxxxxxxxxxx> |
On Sun, Nov 15, 2015 at 7:08 AM, Avi Kivity <avi@xxxxxxxxxxxx> wrote: > Due to a bug in my program, I initiated a read beyond eof. Specifically, the > file size is 13002 bytes and the read offset is 13312 (0x3400). > > I would expect such a read to return 0 bytes read, but io_getevents returns > -310, which is suspiciously equal to (13002 - 13312). > > I attach a reproducer. > > 4.2.5-201.fc22.x86_64 > > Are my expectations incorrect, or is this a bug in aio or xfs? I think it is not a bug. This post might be helpful: http://marc.info/?l=linux-aio&m=142315449930935&w=2 |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: AIO read returns negative number for bytes read, Brian Foster |
|---|---|
| Next by Date: | Re: AIO read returns negative number for bytes read, Avi Kivity |
| Previous by Thread: | Re: AIO read returns negative number for bytes read, Brian Foster |
| Next by Thread: | Re: AIO read returns negative number for bytes read, Avi Kivity |
| Indexes: | [Date] [Thread] [Top] [All Lists] |