|
446 | 446 | \pdfbookmark[1]{file system hierarchy}{fshier} |
447 | 447 |
|
448 | 448 | \begin{slide} |
449 | | -\sltitle{Hierarchie souborových systémů} |
| 449 | +\sltitle{File system hierarchy} |
450 | 450 | \begin{center} |
451 | 451 | \input{img/tex/mount.pstex_t} |
452 | 452 | \end{center} |
453 | 453 | \end{slide} |
454 | 454 |
|
455 | 455 | \begin{itemize} |
456 | | -\item struktura \texttt{vfs} obsahuje implementačně nezávislé informace o |
457 | | -filesystému, nezávislé na konkrétním typu filesystému, tedy podobně jako vnode |
458 | | -funguje pro soubory. Tato struktura reprezentuje jeden konkrétní fyzický |
459 | | -filesystém, aktuálně přimontovaný do hierarchie souborů. V tomto vázaném seznamu |
460 | | -tedy může být více struktur stejného typu souborového systému. |
461 | | -\item \texttt{rootvfs} -- odkaz na root file system |
462 | | -\item \texttt{vfsops} -- tabulka funkcí pro konkrétní typ systému souborů |
463 | | -\item \texttt{vfssw[]} -- pole odkazů na tabulky \texttt{vfsops} pro všechny |
464 | | -systémem podporované typy filesystémů, z tabulky se vybírá při připojování |
465 | | -svazku podle typu filesystému zadaného při volání \texttt{mount} |
466 | | -\item \texttt{v\_vfsp} -- odkaz z vnode na filesystém (strukturu |
467 | | -\texttt{vfs}), na kterém leží soubor reprezentovaný pomocí vnode |
468 | | -\item \texttt{v\_vfsmountedhere} -- pouze ve vnode, který reprezentuje mount |
469 | | -point (adresář, na kterém je připojen kořen jiného filesystému); odkazuje na |
470 | | -strukturu \texttt{vfs} reprezentující připojený filesystém |
471 | | -\item \texttt{v\_vnodecovered} -- odkaz na vnode adresáře, na kterém je |
472 | | -filesystém připojen |
| 456 | +\item The \texttt{vfs} structure contains implementation independent |
| 457 | +information about given filesystem, similarly to how vnode works for files. |
| 458 | +This structure represents once concrete physical filesystem, currently mounted |
| 459 | +to the hierarchy of files. In this linked list there can be more structures of |
| 460 | +the same filesystem type. |
| 461 | +\item \texttt{rootvfs} -- root file system reference |
| 462 | +\item \texttt{vfsops} -- function table for given file system type |
| 463 | +\item \texttt{vfssw[]} -- array of pointers to the \texttt{vfsops} tables for |
| 464 | +all file system types supported by the system. This table is used for selection |
| 465 | +based on filesystem type upon \texttt{mount} syscall. |
| 466 | +\item \texttt{v\_vfsp} -- reference from vnode to filesystem (the \texttt{vfs} |
| 467 | +structure), on which the file represented by the vnode lies |
| 468 | +\item \texttt{v\_vfsmountedhere} -- only in vnode representing a mount point |
| 469 | +(directory where root of different file system is mounted); points to |
| 470 | +the \texttt{vfs} structure represented mounted filesystem |
| 471 | +\item \texttt{v\_vnodecovered} -- pointer to the vnode of directory where |
| 472 | +the filesystem is mounted to |
473 | 473 | \end{itemize} |
474 | 474 |
|
475 | 475 | %%%%% |
|
0 commit comments