Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible bug in raid.py #48

Open
Erik-Hoffmann opened this issue Jul 7, 2022 · 0 comments
Open

Possible bug in raid.py #48

Erik-Hoffmann opened this issue Jul 7, 2022 · 0 comments

Comments

@Erik-Hoffmann
Copy link

In the raid.py simulator, we tried the following: python raid.py -L 1 -c

One address to compute were 6183. With our understanding, you are supposed to compute the disc number with address % number_of_discs

Following addresses are located on other discs as computed:

4205 1
LOGICAL READ from addr:4205 size:4096
  read  [disk 2, offset 2102]
----> 4205 % 4 = 1

9097 1
LOGICAL READ from addr:9097 size:4096
  read  [disk 2, offset 4548]  
----> 9097 % 4 = 1

Are we calculating wrong?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant