[sheepdog-users] VDI accessed using sheepfs has wrong size when catting

Marcin Mirosław marcin at mejor.pl
Thu Jan 9 10:01:13 CET 2014


W dniu 09.01.2014 08:44, Liu Yuan pisze:
> On Wed, Jan 08, 2014 at 05:15:50PM +0100, Marcin Mirosław wrote:
>> Hi again!
>> I've got one vdi with size 1GB:
>> # dog vdi list
>>   Name        Id    Size    Used  Shared    Creation time   VDI id
>> Copies  Tag
>>   testowy      0  1.0 GB  1.0 GB  0.0 MB 2014-01-08 15:49   cac836     3
>>
>> I'm mounting volume (echo testowy > vdi/mount), then:
>> # ls -lah /mnt/test/volume/testowy
>> -rw------- 1 root root 1,0G 01-08 16:42 /mnt/test/volume/testowy
>>
>> next I'm catting:
>> # cat /mnt/test/volume/testowy >/tmp/plik
>>
>> When file /tmp/plik grows up to size 1.6GB I hitted ctrl+c on cat. Is it ok?
>>
> 
> I've fixed this problem. You can try the devel branch for the fix.
> 
> $ git checkout -b devel origin/devel
> 
> With this fix, 'cat' will return when finish reading the file.

Hi!
"It works" for me, thanks!
Marcin



More information about the sheepdog-users mailing list