| 165 | } |
| 166 | |
| 167 | InitrdVolume::InitrdVolume(){ |
| 168 | strcpy(mountPoint.name, "initrd"); |
| 169 | mountPoint.flags = FS_NODE_DIRECTORY | FS_NODE_MOUNTPOINT; |
| 170 | |
| 171 | mountPoint.read = Initrd::Read; |
| 172 | mountPoint.write = Initrd::Write; |
| 173 | mountPoint.open = Initrd::Open; |
| 174 | mountPoint.close = Initrd::Close; |
| 175 | mountPoint.readDir = Initrd::ReadDir; |
| 176 | mountPoint.findDir = Initrd::FindDir; |
| 177 | |
| 178 | strcpy(mountPointDirent.name, "initrd"); |
| 179 | mountPointDirent.type = FS_NODE_DIRECTORY; |
| 180 | } |
| 181 | |
| 182 | size_t InitrdVolume::Read(struct fs_node* node, size_t offset, size_t size, uint8_t *buffer){ |
| 183 | return Initrd::Read(node, offset, size, buffer); |