#4656 closed defect (fixed)

sync() whould synchronize all file descriptors (cloned)

Reported by: Sebastian Huber Owned by: Sebastian Huber
Priority: normal Milestone: 6.1
Component: fs Version: 4.5
Severity: normal Keywords:
Cc: Blocked By:
Blocking:

Description

Cloned from #4655:


According to POSIX

https://pubs.opengroup.org/onlinepubs/9699919799/functions/sync.html

we have

The sync() function shall cause all information in memory that updates file systems to be scheduled for writing out to all file systems.

Currently, the RTEMS sync() implementation synchronizes only the file descriptors associated with a FILE object. This should be changed to call fsync() and fdatasync() for all file descriptors.

Change History (1)

comment:1 Changed on 05/17/22 at 13:20:31 by Sebastian Huber <sebastian.huber@…>

Resolution: fixed
Status: assignedclosed

In 3ccfb583/rtems:

Synchronize all file descriptors in sync()

Synchronize all file descriptors and not just the ones associated with a FILE
object.

Close #4656.

Note: See TracTickets for help on using tickets.