remzi-arpacidusseau / ostep-homework

2.1k stars 999 forks source link

Possible bug in raid.py #48

Open Erik-Hoffmann opened 2 years ago

Erik-Hoffmann commented 2 years ago

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?