Answer the question
In order to leave comments, you need to log in
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.
Answer the question
In order to leave comments, you need to log in
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.
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 questionAsk a Question
731 491 924 answers to any question