Skip to content

Conversation

@Donny9
Copy link
Contributor

@Donny9 Donny9 commented Apr 7, 2022

Summary

fs/mmap/msync: support msync and fix some minor issue

Follow: https://man7.org/linux/man-pages/man2/msync.2.html

Impact

Support msync

Testing

Ci

Donny9 added 3 commits April 7, 2022 12:05
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
follow:https://man7.org/linux/man-pages/man2/msync.2.html

Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
@yamt
Copy link
Contributor

yamt commented Apr 7, 2022

  • don't you need to distinguish MAP_SHARED/MAP_PRIVATE? copy-on-write mapping should not be written back to the file.
  • don't you need some reference counting on the file? i guess the file can be closed immediately after mmap.
  • i guess mmap should not modify file offset. (not specific to this PR)

Copy link
Contributor

@yamt yamt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i commented a few questions

@xiaoxiang781216
Copy link
Contributor

@Donny9 we can implement with the new mmap infrastructure which is simpler now: #8000 and #8026.

@Donny9 Donny9 closed this Jul 31, 2023
@crafcat7 crafcat7 mentioned this pull request Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants