xfs
[Top] [All Lists]

Disk Geometry/Partition API

To: "'linux-xfs@xxxxxxxxxxx'" <linux-xfs@xxxxxxxxxxx>
Subject: Disk Geometry/Partition API
From: "Quang Nguyen (Ngo)" <quang.nguyen@xxxxxxxxxxxx>
Date: Thu, 3 Jan 2002 15:42:09 -0800
Sender: owner-linux-xfs@xxxxxxxxxxx
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.

--
Quang



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]]


<Prev in Thread] Current Thread [Next in Thread>