openzfs/zfs

Add dirsync support

Open

#4366 aperta il 24 feb 2016

Vedi su GitHub
 (2 commenti) (0 reazioni) (0 assegnatari)C (1703 fork)batch import
Type: Featuregood first issue

Metriche repository

Star
 (9908 star)
Metriche merge PR
 (Merge medio 5g 21h) (62 PR mergiate in 30 g)

Descrizione

Add support for the Linux dirsync mount option as described in the mount(8) man page.

       dirsync
              All  directory updates within the filesystem should be done syn‐
              chronously.  This affects the  following  system  calls:  creat,
              link, unlink, symlink, mkdir, rmdir, mknod and rename.

It would be nice to support this standard Linux mount option. The most logical place to to go about this would be to extend the existing filesystem sync property to include a directory setting. Of course the downside is that this would result in a compatibility issue with the other openZFS platforms. Other solutions are definitely possible and should be investigated.

Guida contributor