summaryrefslogtreecommitdiff
path: root/Source/Kernel/VFS/Partition.class.h
diff options
context:
space:
mode:
authorAlexis211 <alexis211@gmail.com>2009-09-06 18:05:31 +0200
committerAlexis211 <alexis211@gmail.com>2009-09-06 18:05:31 +0200
commitd95452c5452b4ca7418505fa5597f000596fcb78 (patch)
tree3f8ce8a72620648a03cf882332ed3d10cf96bc2b /Source/Kernel/VFS/Partition.class.h
parent6e83d6c7b9fc36f7e7826451899c564a34a2c761 (diff)
downloadMelon-d95452c5452b4ca7418505fa5597f000596fcb78.tar.gz
Melon-d95452c5452b4ca7418505fa5597f000596fcb78.zip
Added read() and write() functions to Partition::
These functions make it possible to read or write bytes on a partition without worrying of sectors.
Diffstat (limited to 'Source/Kernel/VFS/Partition.class.h')
-rw-r--r--Source/Kernel/VFS/Partition.class.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/Kernel/VFS/Partition.class.h b/Source/Kernel/VFS/Partition.class.h
index e9087bf..8df1c4f 100644
--- a/Source/Kernel/VFS/Partition.class.h
+++ b/Source/Kernel/VFS/Partition.class.h
@@ -15,6 +15,10 @@ class Partition {
bool readBlocks(u64int startblock, u32int count, u8int *data);
bool writeBlocks(u64int startblock, u32int count, u8int *data);
+ //These two just use the readBlocks && writeBlocks defined above
+ bool read(u64int start, u32int length, u8int *data);
+ bool write(u64int start, u32int length, u8int *data);
+
//Accessors :
BlockDevice* getDevice();
u64int getStartBlock();