#4655 closed defect (fixed)

sync() whould synchronize all file descriptors

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

Description

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:24:35 by Sebastian Huber <sebastian.huber@…>

Resolution: fixed
Status: assignedclosed

In 8d54187/rtems:

Synchronize all file descriptors in sync()

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

Close #4655.

Note: See TracTickets for help on using tickets.