On Fri, Nov 25, 2016 at 1:53 PM, Johannes Thumshirn wrote:
> On Fri, Nov 25, 2016 at 01:20:34PM +0200, Eyal Ben David wrote:
>> Note that sg_mmap_read does not parse the SCSI sense, so the script
>> might fail for other reasons (some SCSI error) and think its a zero
>> byt
Note that sg_mmap_read does not parse the SCSI sense, so the script
might fail for other reasons (some SCSI error) and think its a zero
byte corruption.
If you think an improved version could help (compare results within
the program + parse senses) I can help.
On Fri, Nov 25, 2016 at 10:07 AM,
On Tue, Nov 22, 2016 at 8:30 PM, Ewan D. Milne wrote:
>
> I see the behavior (zero byte) on the 4.4.34, 4.5.7, 4.6.7, and 4.7.10
> -stable kernels. But not (of course) on 4.8.10 -stable.
>
> It doesn't look like the sg driver, might be something in the mmap code?
A kernel guy colleague suggeste
> @Eyal is this with a physical or virtual host? And what kind of HBA do you
> have? Just in case it makes a difference.
All physical hosts,
Original problem was detected on qlogic FC HBA (Ubuntu 16.04)
To check if this is transport related, we reproduced the 0 byte
corruption on iSCSI too.
To
Same problem on Fedora 23
$ uname -r
4.7.10-100.fc23.x86_64
$ sudo ./sg_mmap_read -d /dev/sg0 -l 0 | od -t x1
000 eb 63 90 10 8e d0 bc 00 b0 b8 00 00 8e d8 8e c0
...
$ sudo ./sg_mmap_read -d /dev/sg0 -l 0 -m | od -t x1
000 eb 63 90 10 8e d0 bc 00 b0 b8 00 00 8e d8 8e c0
...
$ sudo ./sg_
annes Thumshirn :
> On Mon, Nov 21, 2016 at 04:15:52PM +0100, Johannes Thumshirn wrote:
>> On Mon, Nov 21, 2016 at 04:55:29PM +0200, Eyal Ben David wrote:
>> > Thanks for your reply,
>> >
>> > On RHEL system it does not occur.
>> >
>> > So far
Thanks for your reply,
On RHEL system it does not occur.
So far I have seen the problem on Ubuntu 16.04 and Fedora 22 (both
with kernel 4.4.x)
2016-11-21 16:24 GMT+02:00 Ewan D. Milne :
> On Mon, 2016-11-21 at 11:23 +0200, Eyal Ben David wrote:
>> Hi,
>>
>> The utility
#x27;:
puts(help_str);
return 0;
default:
return 1;
}
}
if (!device || lba == -1) {
fprintf(stderr, "command line error: missing device or lba");
return 1;
}
scsi_read_block(device, lba, fmmap, fmmap_bug);
Hi all,
We have some IO utility that perform the IOs using sg and direct io with mmap.
Our current systems are Ubuntu 14.04, RHEL 6,7
The IO utility always set dxferp to either the address or mmap of
other allocation (valloc)
Setting dxferp was harmless since SG is supposed to ignore the address
i
9 matches
Mail list logo