Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Reboot before pushing?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
grant123
l33t
l33t


Joined: 23 Mar 2005
Posts: 989

PostPosted: Sun Mar 09, 2014 5:31 pm    Post subject: Reboot before pushing? Reply with quote

I periodically push / to another system via rsync. If I've updated my system since my last reboot, could I potentially push old files cached in memory?
Back to top
View user's profile Send private message
mv
Watchman
Watchman


Joined: 20 Apr 2005
Posts: 6281

PostPosted: Sun Mar 09, 2014 9:31 pm    Post subject: Reply with quote

No. In Linux filesystems the file which you see when you open() it "freshly" is always the file on disk, never the cached file: If running processes still have "old" files open, this old information is kept separately on disk and can be accessed only by the processes (or by tricks over the /proc pseudo-filesystem if you have to) - other processes opening the file will get the "actual" content.
Back to top
View user's profile Send private message
grant123
l33t
l33t


Joined: 23 Mar 2005
Posts: 989

PostPosted: Mon Mar 10, 2014 3:16 pm    Post subject: Reply with quote

Linux does it right. Big surprise. :) Thank you.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum