Page 2 of 2

Re: Format

Posted: Tue Nov 09, 2021 9:13 pm
by punk_joker
Как вариант, добавть в текущих функциях этот функционал. Просто добавить в структуру флаг работы с диском, либо глобальный флаг запрета, и перед работой с диком его снимать, плюс проверка по имени пути.
А потом с реализацией дескрипторов переписать на них. Естественно писать в отдельной ветке, и в мастер заливать только после тщательного тестирования, желательно несколькими людьми.

Re: Format

Posted: Tue Nov 16, 2021 5:21 am
by dunkaist
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.

Re: Format

Posted: Fri Nov 19, 2021 11:16 pm
by wataj77871
Еее)
Отформатируем винду