Re: RBD image mounted by command "rbd-nbd" the status is read-only.

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

 



On Mon, Apr 25, 2016 at 7:47 PM, Stefan Lissmats <stefan@xxxxxxxxxx> wrote:
> Hello again!
>
> I understand that it's not recommended running osd and rbd-nbd on the same host and i actually moved my rbd-nbd to a completely clean host (same kernel and OS though), but with same result.
>
> I hope someone can resolve this and you seem to indicate it is some kind of known error but i didn't really understand the github commit that you linked.

Yes, it is a bug.  rbd-nbd code expects writes to have rval (return
code) equal to the size of the write.  I'm pretty sure that's wrong,
because rval for writes should be 0 or a negative error.

I think what happens is your writes complete successfully, but rbd-nbd
then throws an -EIO to the kernel because 0 != write size.  I could be
wrong, so let's wait for Mykola to chime in - he added that check to
fix discards.

Thanks,

                Ilya
_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com



[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux