search for: boot_block_size

Displaying 1 result from an estimated 1 matches for "boot_block_size".

2008 Feb 01
2
How to read group descriptor?
...r. Here is my code. Please check out what is missing. #include<linux/ext3_fs.h> #include<sys/types.h> #include<sys/stat.h> #include<stdio.h> #include<unistd.h> #include<fcntl.h> #include<stdlib.h> #include<string.h> #define block_size 4096 #define boot_block_size 1024 int main() { char *buff = (char *)malloc(block_size); struct ext3_super_block * sblock = (struct ext3_super_block *)malloc(sizeof(struct ext3_super_block)); struct ext3_group_desc * gdesc = (struct ext3_group_desc *)malloc(sizeof(struct ext3_group_desc)); int fd = open("/dev/hd...