In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
I did an experiment where if the file itself is changing during the copying process, what process should the file be in after the final copy?
Is it the state at the start of replication, the state at the end of replication, or some state of an intermediate file.
Use the script file.sh to insert lines continuously into the file.dmp file, and the file will always grow larger.
file.sh:
Click here to fold or open
#!/ bin/bashi=1while truedoi=$[i+1]echo $i >> file.dmpdone
Break script.
The last line of file.dmp is 152940.
We copy using $ cp file.dmp file.dmp.bak and immediately run the file.sh script to insert the line.
After cp command ends (file must be large enough, otherwise time is very fast, can not be effective), look at the last line of file.dmp.bak file, found that is 152940.
The conclusion is that the files generated by replication will be consistent with the state at the beginning of replication, and the source files will continue to change during the replication process.
Also verify that using rsync works the same.
I welcome your testimonies.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.