Linux tmpfs – Does Filesystem Need Sync Option?

tmpfs

I'm looking for info about mounting a tmpfs partition and sync option.
Sync makes the data beeing dumped onto the disk without beeing saved in cache.
This works with ext4 and other filesystems. I'm wondering is even a tmpfs partition needs the sync option to be specified or it is enabled by default since it is a RAM partition. In my option it would be odd if a ramdisk would be cached in RAM.

tmpfs /tmp tmpfs defaults,sync,noatime,nosuid,nodev,noexec,mode=0777,size=400M 0 0

In a tmpfs partition is sync enabled by default?

Best Answer

I had to search a bit. According to

man mount

The sync option is relevant only for a limited number of filesystems, not for tmpfs.

So the answer is: It does not matter, since it is ignored by tmpfs.

Related Topic