Как вариант, добавть в текущих функциях этот функционал. Просто добавить в структуру флаг работы с диском, либо глобальный флаг запрета, и перед работой с диком его снимать, плюс проверка по имени пути.
А потом с реализацией дескрипторов переписать на них. Естественно писать в отдельной ветке, и в мастер заливать только после тщательного тестирования, желательно несколькими людьми.
Format
-
to infinity and beyond
This topic outlines design of LBA access API based on sf70 and existing dyndisk code, i.e. without introducing file descriptors.
To flush a cache of a disk,grep the sources for the words flush and cache use the corresponding function.
To prevent FS functions from accessing a partition, call free like it is done in disk_media_dereference.
The code of disk.inc and disk_cache.inc is well documented by CleverMouse. Don't be afraid of reading it to get the idea of how disks, partitions and FSs are operating.
To flush a cache of a disk,
To prevent FS functions from accessing a partition, call free like it is done in disk_media_dereference.
The code of disk.inc and disk_cache.inc is well documented by CleverMouse. Don't be afraid of reading it to get the idea of how disks, partitions and FSs are operating.
Еее)
Отформатируем винду
Отформатируем винду
Who is online
Users browsing this forum: No registered users and 1 guest