|
4 | 4 | %%%%% |
5 | 5 |
|
6 | 6 | \begin{slide} |
7 | | -\sltitle{hierarchical file system} |
| 7 | +\sltitle{Hierarchical file system} |
8 | 8 | \begin{center} |
9 | 9 | \input{img/tex/fstree.pstex_t} |
10 | 10 | \end{center} |
11 | 11 | \end{slide} |
12 | 12 |
|
13 | 13 | \begin{itemize} |
14 | | -\item svazek (angl. \emph{file system}) je část souborového systému, kterou lze |
15 | | -samostatně vytvořit, připojit, zrušit... Každý filesystém může mít jinou vnitřní |
16 | | -strukturu (\texttt{s5}, \texttt{ufs}, \texttt{ext2}, \texttt{xfs}, atd.) a může |
17 | | -být uložen na lokálním disku nebo na jiném počítači a přístupný po síti |
18 | | -(\texttt{nfs}, \texttt{afs}). |
19 | | -\item po startu jádra je připojený jen kořenový filesystém, další filesystémy se |
20 | | -zapojují do hierarchie na místa adresářů příkazem \texttt{mount}. Tento příkaz |
21 | | -je možné spustit ručně (uživatel root libovolně, ostatní pouze na některých |
22 | | -systémech a s~omezeními) nebo automaticky během inicializace systému, kdy se |
23 | | -typicky řídí obsahem souboru \texttt{/etc/fstab}. Před zastavením systému se |
24 | | -filesystémy odpojují příkazem \texttt{umount}. |
25 | | -\item další možnost je připojení filesystému na žádost při prvním přístupu a |
26 | | -jeho odpojení po určité době nečinnosti. Tuto funkci zajišťuje démon |
27 | | -\emph{automounter} (\texttt{autofs}, \texttt{automount}, \texttt{amd}). |
28 | | -\item UNIX nemá žádné A, B, C, D\dots disky apod. |
| 14 | +\item A \emph{file system} is a data structure to control how data is stored and |
| 15 | +retrieved. Without it the stored data would have no structure, ownership, etc. |
| 16 | +The filesystem structure provides for storing directories (folders), files, |
| 17 | +metadata, etc. |
| 18 | +\item Each filesystem has a specific structure type it uses, for example |
| 19 | +\texttt{ext4} (Linux specific), \texttt{XFS} (used on Linux but coming from SGI |
| 20 | +IRIX), \texttt{JFS} (used on Linux but came from IBM AIX), \texttt{ufs} (BSD |
| 21 | +systems), \texttt{FAT32} (Win), \texttt{ZFS} (Solaris born, then ported to other |
| 22 | +systems), etc. The filesystem can be either used on local or remote storage, |
| 23 | +and in case of a remote storage network filesystem protocols like \texttt{NFS} or |
| 24 | +\texttt{AFS} are used. Note that these network filesystems do not define the |
| 25 | +filesystem structure itself, they only provide for accessing existing |
| 26 | +filesystems remotely. Each filesystem also has its limits, a largest file size |
| 27 | +or the maximum size of the filesystem itself, for example. |
| 28 | +\item Unix does not have A, B, C, D\dots disks as Windows and other systems. |
| 29 | +All filesystems are mounted to a single directory hierarchy on any Unix system, |
| 30 | +as shown on the slide where you can see the root filesystem and three other |
| 31 | +fileystems, mounted on \texttt{/usr}, \texttt{/dev/tty}, and \texttt{/home} |
| 32 | +directories. You could also further mount other filesystems on directories that |
| 33 | +are part of these non-root filesystems. |
| 34 | +\item Each filesystem mounted to the common hierarchy may be formatted using a |
| 35 | +different filesystem type. However, that is largely transparent to a user |
| 36 | +traversing the hierarchy. There are some exceptions though. For example, |
| 37 | +\texttt{FAT32} does no provide user and access rights for files so those are |
| 38 | +faked when such filesystem is mounted. |
| 39 | +\item Upon the system boot, the root filesystem is mounted first, other |
| 40 | +filesystems are later mounted via the \texttt{mount} commmand, usually from |
| 41 | +specific startup services based on the system you use. The startup services |
| 42 | +sometimes use file \texttt{/etc/fstab} as a source of information about what |
| 43 | +filesystems to mount. You can also use \texttt{mount} manually. To unmount a |
| 44 | +filesystem, the \texttt{umount} command is used. |
| 45 | +\item Some systems also provide for auto mounting where filesystems are mounted |
| 46 | +during the first access attempt, and may be automatically unmounted after a |
| 47 | +period of inactivity. Such functionality is usually called an |
| 48 | +\emph{automounter}. See \texttt{autofs}, \texttt{automount}, or \texttt{amd} |
| 49 | +for more information. |
29 | 50 | \end{itemize} |
30 | 51 |
|
31 | | - |
32 | 52 | %%%%% |
33 | 53 |
|
34 | 54 | \pdfbookmark[1]{typical layout of directories}{hier} |
|
0 commit comments