iloveos/include/fs_constants.hpp
2023-12-01 22:51:15 -08:00

24 lines
464 B
C++

#ifndef FS_CONSTANTS_HPP
#define FS_CONSTANTS_HPP
#include <algorithm>
#include <fcntl.h>
#include <inttypes.h>
#include <linux/fs.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/ioctl.h>
#include <unistd.h>
#define IO_BLOCK_SIZE 4096
#define INDIRECT_BLOCKS 512
#define NUM_INODE_BLOCKS 1023
#define INODE_SIZE 512
// TODO: explore the optimal value for this
#define DATABLOCKS_PER_BITMAP_BLOCK 2047
#endif