[Bugs] [Bug 1534453] Reading over than the file size on dispersed volume
bugzilla at redhat.com
bugzilla at redhat.com
Wed Jul 17 08:46:24 UTC 2019
https://bugzilla.redhat.com/show_bug.cgi?id=1534453
Ashish Pandey <aspandey at redhat.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
Flags|needinfo?(aspandey at redhat.c |
|om) |
--- Comment #6 from Ashish Pandey <aspandey at redhat.com> ---
I could reproduce this case easily on latest master.
I am uploading two files with this BZ which will help to reproduce this case.
1 - ec-fallocate-read.t - It will create two volume of 6+3 (patchy) and 4+2
(patchy1). Will mount these volumes and create a file on each using fallocate.
2 - ec-fallocate-read.c - This will read the files uding gfapi's and we can see
the issue.
After compiling it we need to provide host name of the volume and volume name.
gcc ec-fallocate-read.c -lgfapi -Wall -O2
./a.out <hostname> patchy
./a.out <hostname> patchy1
I am seeing the following result -
[root at apandey Bugz]# ./a.out apandey patchy1
retr : 130394, offset : 0(0)
offset : 130394
----
[root at apandey Bugz]# stat /mnt/glusterfs/1/test1
File: /mnt/glusterfs/1/test1
Size: 130394 Blocks: 256 IO Block: 131072 regular file
Device: 3ah/58d Inode: 11138790474948514051 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2019-07-17 14:01:52.152482945 +0530
Modify: 2019-07-17 14:01:52.152482945 +0530
Change: 2019-07-17 13:59:33.253903983 +0530
Birth: -
[root at apandey Bugz]# ./a.out apandey patchy
retr : 130394, offset : 0(0)
retr : 1024, offset : 130394(0)
retr : 678, offset : 131418(0)
offset : 132096
[root at apandey Bugz]#
------
[root at apandey Bugz]# stat /mnt/glusterfs/0/test1
File: /mnt/glusterfs/0/test1
Size: 130394 Blocks: 258 IO Block: 131072 regular file
Device: 39h/57d Inode: 9549418052567184184 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2019-07-17 14:01:52.114542579 +0530
Modify: 2019-07-17 14:01:52.114542579 +0530
Change: 2019-07-17 14:01:52.113054347 +0530
Birth: -
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Bugs
mailing list