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