The file system has become interesting. The definitions are boring "this is part of the OS ...". I want to understand what it is at the process level (I don’t know how to say more precisely). They write that here they say FS determines the order of recording information on a hard disk. How does she define it? Is this a separate process or is it some kind of complex data structure in the kernel?

  • ru.wikipedia.org/wiki/… - read? fit? - nick_n_a
  • I never understood why throw a link to the wiki) What is the meaning? I for example could not understand what it means "File system is an order ...". Have you often coded "order"?) Or "part of OS"?) I - no. Therefore, I want to understand at least approximately, a file system is such a complex data structure with which the kernel works or something else. - Semerkin
  • What exactly do you want to know about the file system? - nick_n_a
  • Would I be right if I say that a file system is a data structure, roughly a tree, in which the node describes any metadata of each level of the tree. Those. files, their sizes and stuff - Semerkin
  • one
    A file system is a set of bytes that are interconnected by certain rules that allow it to separate out separate sequences of bytes called files (as one type of object fs). - nick_n_a

1 answer 1

The file system (FS) can be compared with the library register, when you need to find the book you are looking for by the author the desired book in the cards, and when you find it, it shows the rack and shelf. In addition, the librarian keeps a journal of moving books.

In the operating system, the file manager works with the file system driver (who knows how to work with it and understands the topology). When loaded into memory, information about the partitions and sectors of the hard disk is read into the corresponding table (as in the register library). If you need to load something from the HDD, the file system driver searches for the right place in the partition table and sectors and requests the information through the HDD driver, thus forming commands to the hard disk controller, which provides data while they are written to the specified memory location (buffer) . After that, the file manager reads this information from the memory, interprets it and shows the user already the folders and files on the monitor.