lkml.org 
[lkml]   [2006]   [Jun]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectmmap/VM snapshot question
I have four processes accessing the same file using mmap() with MAP_SHARED.
I'd like to take a copy-on-write snapshot of that file so that I can do a
backup. However, if I try to start a fifth process and map the file with
MAP_PRIVATE, the copy-on-write only works one way; i.e. changes made by the
other processes can be visible by the backup process.

How do you get the Linux VM to reverse the copy-on-write, where the four
original processes can keep sharing their data and the fifth backup process
retains the data made at the time of the snapshot?

Thanks,
-Byron

--
Byron Stanoszek Ph: (330) 644-3059
Systems Programmer Fax: (330) 644-8110
Commercial Timesharing Inc. Email: byron@comtime.com
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-06-08 22:43    [W:0.026 / U:2.032 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site