dragon135
dragon135

Reputation: 1376

Does syncfs wait until disc write finished?

Does the new syncfs system call wait for disc write completion before returning, like in case of fsync? Also, if after modifying file, is calling syncfs for this file descriptor also update the containing directoy entry?

Upvotes: 1

Views: 2286

Answers (1)

stark
stark

Reputation: 13189

syncfs writes out all dirty pages from the superblock on down. Disks may have write caching, so this does not guarantee that all data has been saved. You could, for example, turn off power without still calling shutdown.

Upvotes: 5

Related Questions