let this_sector = self.first_sector + self.sectors_written;
- self.storage.write(this_sector as usize * SECTOR_SIZE,
- &self.write_buffer);
+ if self.storage.write(this_sector as usize * SECTOR_SIZE,
+ &self.write_buffer).is_err() {
+ // XXX
+ }
self.sectors_written += 1;
// our buffer with 0xff, so we don't need to do anything here.
let this_sector = self.first_sector + self.sectors_written;
- self.storage.write(this_sector as usize * SECTOR_SIZE,
- &self.write_buffer);
+ if self.storage.write(this_sector as usize * SECTOR_SIZE,
+ &self.write_buffer).is_err() {
+ // XXX
+ }
self.sectors_written += 1;