获取有关硬盘扇区中原始数据的更改的通知-文件更改通知 [英] Get notified about the change in raw data in hard disk sector - File change notification

查看:89
本文介绍了获取有关硬盘扇区中原始数据的更改的通知-文件更改通知的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试制作一个备份整个硬盘的软件.

I'm trying to make a software that backups my entire hard drive.

我设法编写了一个代码,用于从硬盘扇区读取原始数据.但是,我想进行增量备份.为此,我需要了解对OS设置所做的更改,文件更改以及所有内容.

I've managed to write a code for reading the raw data from hard disk sectors. However, i want to have incremental backups. For that i need to know the changed made to OS settings, file changes, everything.

我的问题是-

使用 FileSystemWatcher Inotify ,我能否知道对硬盘驱动器中每个扇区进行的所有更改? (操作系统设置等)

Using FileSystemWatcher and Inotify, will i be able to know every change made to every sector in the hard drive ? (OS settings etc)

我正在用C ++为Linux和Windows编写代码.

I'm coding it in C++ for linux and windows.

(在推荐答案

Inotify是在程序运行时检测更改,我猜FilySystemWatches是相似的.

Inotify is to detect changes while your program is running, I'm guessing that FilySystemWatches is similar.

解决此问题的一种方法是在每个扇区或多个扇区上都有一个校验和,并且在进行备份时,将校验和与您拥有的列表和仅已更改的备份块进行比较.

One way to solve this is to have a checksum on each sector or multiple of sectors, and when making a backup you compare the checksums to the list you have and only backup blocks that have been changed.

这篇关于获取有关硬盘扇区中原始数据的更改的通知-文件更改通知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆