M
M
max_mara2011-11-20 22:52:01
File systems
max_mara, 2011-11-20 22:52:01

Mount - what is dirsync?

Good afternoon,
what does the dirsync option on mount mean, except

All directory updates within the file system should be done synchronously. This affects the following system calls: creat, link, unlink, symlink, mkdir, rmdir, mknod and rename.

I understand the translation, I don't understand the process going on in the file system.
Thanks

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
kreativf, 2011-11-20
@max_mara

I'll try to explain this option as I understand it:
Folders and files are made up of inodes and metadata. Inode changes (for example, dragging one file from folder to folder) happen asynchronously, that is, you write: rename /path/to/file /path/to/another and usually rename will unsubscribe that it did everything by actually putting this change in the queue. Saving changes to disk does not happen immediately. If you use the dirsync option, then you force these changes to be written immediately to disk, as if out of order. This option, as its name suggests, only affects inode and folder metadata.

B
Boris Syomov, 2011-11-20
@kotomyava

Data is forcibly dumped to the disk upon any changes in the directory structure - creating, deleting, creating files, etc. Those. this data will not lie in the cache / buffers for some time.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question