5 void tfs_bread(struct tfs_sb_info
*sbi
, uint32_t block
, void *buf
)
7 uint32_t sector
= (block
<< (sbi
->s_block_shift
- 9)) + sbi
->s_offset
+ TFS_FS_SECTOR
;
9 floppy_reads(sector
, buf
, 1 << (sbi
->s_block_shift
- 9));
12 void tfs_bwrite(struct tfs_sb_info
*sbi
, uint32_t block
, void *buf
)
14 uint32_t sector
= (block
<< (sbi
->s_block_shift
- 9)) + sbi
->s_offset
+ TFS_FS_SECTOR
;
16 floppy_writes(sector
, buf
, 1 << (sbi
->s_block_shift
- 9));