需要libc中的API来访问磁盘几何参数和分区的相关信息 [英] Need libc APIs to access disk geometry and partitioning related info

查看:114
本文介绍了需要libc中的API来访问磁盘几何参数和分区的相关信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是一个新的项目,该项目涉及创建备份驱动器映像工作。

I am working on a new project, which relates to creating drive images for backup.

作为它的一部分,我需要写code,可以给相关的磁盘几何很多有用的信息 - 缸,没有。部门,分区和文件系统甚至和驱动的具体信息,如哪个分区是present在哪个驱动器。我需要一些API。

As a part of it, i need to write code which can give much useful information related to disk geometry - cylinders, no. of sectors, partitions, and file systems and even drive specific info, like which partition is present on which drive. i need some APIs.

如果您除了可以的API,将是巨大的张贴code了。

If you can post a code too in addition to APIs that will be great.

P.S:东西类似于Novell公司 - ZENWORKS(成像)确实

推荐答案

有是没有glibc的设施。使用 libblkid

There is no glibc facility for that. Use libblkid.

这篇关于需要libc中的API来访问磁盘几何参数和分区的相关信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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