sahlberg/libiscsi — pull request #17 by jongrimm (2012-09-14 18:01:03+00:00)
Title: ld_iscsi: add xstat64 & friends, + a couple bug fixes in ld_iscsi

Hi there Ronnie,

I don't know if you want patches or pull requests... thought i'd experiment with github faciilities either way.

Went to play with LD_PRELOAD fun and realized my utils are linked to xstat64 & friends. While in there noticed that num_blocks was off by one (bug). Also my 'cat' was asking for bytes beyond the last lba, so the read was barfing due to error being sent back by the target (STGT virtual disk),.. so I limit requests to ones that fit.

Otherwise, added xstat64, lxstat64, fxstat64, open64 to get cat and stat working on my box.

jon