kern
diff src/bdev.h @ 93:083849df660b
split the system call implementations out of fs.c into fs_sys.c
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sun, 11 Dec 2011 10:17:58 +0200 |
parents | f83f50c17c3b |
children |
line diff
1.1 --- a/src/bdev.h Fri Dec 09 15:29:54 2011 +0200 1.2 +++ b/src/bdev.h Sun Dec 11 10:17:58 2011 +0200 1.3 @@ -8,13 +8,19 @@ 1.4 struct block_device { 1.5 int ata_dev; 1.6 uint32_t offset, size; 1.7 + 1.8 + /* Partition type (if the blkdev is a partition), otherwise 0. 1.9 + * Used as just an extra sanity check to make sure we don't 1.10 + * try to mount the wrong filesystem. 1.11 + */ 1.12 + int ptype; 1.13 }; 1.14 1.15 struct block_device *blk_open(dev_t dev); 1.16 void blk_close(struct block_device *bdev); 1.17 1.18 -int blk_read(struct block_device *bdev, uint32_t blk, void *buf); 1.19 -int blk_write(struct block_device *bdev, uint32_t blk, void *buf); 1.20 +int blk_read(struct block_device *bdev, uint32_t blk, int count, void *buf); 1.21 +int blk_write(struct block_device *bdev, uint32_t blk, int count, void *buf); 1.22 1.23 dev_t bdev_by_name(const char *name); 1.24