122864f4b6
Reading more into POSIX, it seems that most of the write functions do have special behavior built into what would implicitly be a noop. It's difficult to find, since it usually doesn't matter, but consider the m_time field. The following operations do _not_ update m_time: - write when size=0 - truncate when size does not change - fruncate when size does not change I think it's safe to extend these to sync broadcasts in littlefs, and only guarantee sync broadcasts when the file state has changed (even though that may mean other file handles may remain out-of-date!). In this interpretation, the "write operations" described in POSIX more mean the implicit write operations effected by write/truncate/fruncate. That being said, it's not clear what the best approach is, desync files make this all a bit more muddled... This may also be reverted.