Re: [PATCH 1/1] cio_ignore_proc_seq_next should increase position index

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

 




On 11.02.20 11:19, Peter Oberparleiter wrote:
[...]
>> but this code is still fishy:
>>
>> $ cat /proc/cio_ignore 
>> 0.0.fe00-0.0.fefe
>> 0.0.ff00-0.0.ffff
>> $ dd if=/proc/cio_ignore status=none
>> 0.0.fe00-0.0.fefe
>> 0.0.ff00-0.0.ffff
>> $ dd if=/proc/cio_ignore status=none bs=10
>> 0.0.fe00-0.0.fefe
>> 0.0.ff00-0.0.ff01-0.0.ff02-0.0.ff03-0.0.ff04-0.0.ff05-0.0.ff06-0.0.ff07-0.0.ff08-0.0.ffff
>> $ dd if=/proc/cio_ignore status=none bs=10 skip=1
>> .0.fefe
>> 0.0.ff00-0.0.ff01-0.0.ff02-0.0.ff03-0.0.ff04-0.0.ff05-0.0.ff06-0.0.ff07-0.0.ff08-0.0.ffff
>>
>>
>> Peter, any opinions on this?
> 
> A correct implementation of a file read operation must result in the
> same data being read independently of whether the file is read in one
> go, or if it is read byte-by-byte.
> 
> It seems that the current cio_ignore seq-file implementation doesn't
> meet that requirement. I don't think that this patch series is the best
> way to address this problem though.
> 
> My suggestion would be to apply this patch set as is, and then I'll take
> the to-do to fix this seq file implementation at a later time.

Ok, I will will Vasily patch. 




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Kernel Development]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Info]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Linux Media]     [Device Mapper]

  Powered by Linux