Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 623667 - seeker hits random bytes unaligened
Summary: seeker hits random bytes unaligened
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: seeker
Version: 13
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Ville Skyttä
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-08-12 13:27 UTC by Ege Turgay
Modified: 2010-08-19 11:24 UTC (History)
1 user (show)

Fixed In Version: 3.0-3
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-08-19 11:24:01 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
the patched code (4.91 KB, text/plain)
2010-08-12 13:27 UTC, Ege Turgay
no flags Details

Description Ege Turgay 2010-08-12 13:27:58 UTC
Created attachment 438437 [details]
the patched code

Description of problem:
i've been told that it wasn't testing the i/o accurately because it was choosing its starting location as a random number of bytes into the disk, then the most of the time you will need to read two sectors to get 512 bytes.
only if you choose a starting byte divisible by 512 will you read your whole 512 bytes from a single sector. Using direct i/o with memory and buffer alignment fixes this issue as well. One of my colleagues (Mr. Ian Sherratt) patched this, so i don't have a good understanding of the code. I've attached the patched version

Version-Release number of selected component (if applicable):


How reproducible:
always

Steps to Reproduce:
1. just running the test
2.
3.
  
Actual results:
n/a

Expected results:
n/a

Additional info:

Comment 1 Ville Skyttä 2010-08-19 11:24:01 UTC
http://pkgs.fedoraproject.org/gitweb/?p=seeker.git;a=commitdiff;h=fe5760ae0e426449aeb7d5357b30a0f9b3749a5d

Thanks, modified patch applied in devel and built for Rawhide, let's see if someone spots a problem with it.


Note You need to log in before you can comment on or make changes to this bug.