| 8 | static int nextDeviceNumber = 0; |
| 9 | |
| 10 | DiskDevice::DiskDevice() : Device(TypeDiskDevice){ |
| 11 | flags = FS_NODE_CHARDEVICE; |
| 12 | |
| 13 | char buf[16]; |
| 14 | strcpy(buf, "hd"); |
| 15 | itoa(nextDeviceNumber++, buf + 2, 10); |
| 16 | |
| 17 | SetName(buf); |
| 18 | } |
| 19 | |
| 20 | int DiskDevice::InitializePartitions(){ |
| 21 | static char letter = 'a'; |