fp = fopen(test_filename, "w+");
int PAGE_FILL = PAGE_SIZE - BATTFS_HEADER_LEN;
- unsigned int INODE = 0;
- unsigned int INODE2 = 4;
- unsigned int INEXISTENT_INODE = 123;
+ inode_t INODE = 0;
+ inode_t INODE2 = 4;
+ inode_t INEXISTENT_INODE = 123;
unsigned int MODE = 0;
// page, inode, seq, fill, pgoff
fp = fopen(test_filename, "w+");
unsigned int PAGE_FILL = PAGE_SIZE - BATTFS_HEADER_LEN;
- unsigned int INODE = 0;
- unsigned int INODE2 = 4;
+ inode_t INODE = 0;
+ inode_t INODE2 = 4;
unsigned int MODE = 0;
disk->erase(disk, 0);
fp = fopen(test_filename, "w+");
const unsigned int PAGE_FILL = PAGE_SIZE - BATTFS_HEADER_LEN;
- unsigned int INODE = 0;
- unsigned int MODE = 0;
+ inode_t INODE = 0;
+ inode_t MODE = 0;
uint8_t buf[PAGE_FILL + BATTFS_HEADER_LEN / 2];
disk->erase(disk, 0);
fp = fopen(test_filename, "w+");
unsigned int PAGE_FILL = PAGE_SIZE - BATTFS_HEADER_LEN;
- unsigned int INODE = 0;
- unsigned int INODE2 = 4;
+ inode_t INODE = 0;
+ inode_t INODE2 = 4;
unsigned int MODE = 0;
disk->erase(disk, 0);
fp = fopen(test_filename, "w+");
const unsigned int PAGE_FILL = PAGE_SIZE - BATTFS_HEADER_LEN;
- unsigned int INODE = 0;
- unsigned int MODE = 0;
+ inode_t INODE = 0;
+ inode_t MODE = 0;
uint8_t buf[PAGE_FILL + BATTFS_HEADER_LEN / 2];
disk->erase(disk, 0);
fclose(fpt);
BattFs fd1;
- unsigned int INODE = 0;
- unsigned int MODE = BATTFS_CREATE;
+ inode_t INODE = 0;
+ inode_t MODE = BATTFS_CREATE;
ASSERT(battfs_init(disk));
ASSERT(battfs_fileopen(disk, &fd1, INODE, MODE));
fclose(fpt);
BattFs fd1;
- unsigned int INODE = 0;
- unsigned int MODE = BATTFS_CREATE;
+ inode_t INODE = 0;
+ inode_t MODE = BATTFS_CREATE;
uint8_t buf[1000];
ASSERT(battfs_init(disk));
fclose(fpt);
BattFs fd1,fd2;
- unsigned int INODE1 = 1, INODE2 = 2;
- unsigned int MODE = BATTFS_CREATE;
+ inode_t INODE1 = 1, INODE2 = 2;
+ inode_t MODE = BATTFS_CREATE;
uint8_t buf[1000];
ASSERT(battfs_init(disk));