I'm writing a backup utility, which hopefully will handle full disaster
recovery in case of a disk failure. I want it to backup not only the data,
ACL, etc, but also disk geometry and partition information. This
information will be used during the recovery procedure to recreate the
partitions the original disk had with an option of resizing, etc...
The app is Linux based, but I want it to be aware of other partitions
created by a different OS as well. I studied the source code of fdisk and
sfdisk, /usr/include/linux/genhd.h hdreg.h so I have some ideas. However, I
wondered if there are C functions available that simplify the task. I also
need some documents on the ioctl commands specified in hdreg.h.
Any hints/tips/ideas would be appreciated.
This email has been scanned for all viruses by the MessageLabs SkyScan service.
For more information on a pro-active anti-virus service working around the
clock, around the globe visit http://www.messagelabs.com/
[[HTML alternate version deleted]]