- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- ioctl definition for lvm operations
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-11-2004 07:58 AM
тАО12-11-2004 07:58 AM
ioctl definition for lvm operations
I have been developing a software that needs issuing ioctls to a lvm device from another kernel module.
With q4 I could reconstruct the structure like
lv_querylv:
q4 cat query |grep lv
.....
28 10 struct lv_querylv
.......
q4 fields struct lv_querylv
It will take a long time to decode the lv_ioctl() routine (that is what stored in cdevsw and bdevsw)
and find out the definition for the IOCTLS
those do various operation on a lvm device.
Question: How do we get access to the header for lvm code? It is not included in the standard distribution.
Kallol
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-13-2004 10:40 PM
тАО12-13-2004 10:40 PM
Re: ioctl definition for lvm operations
struct lv_querylv {
ushort_t minor_num;
ulong_t numpxs;
ushort_t numlxs;
ushort_t maxlxs;
ushort_t lv_flags;
ushort_t sched_strat;
ushort_t maxmirrors;
} lv_querylv;
Or something like that. You need lvm.h?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-14-2004 02:43 PM
тАО12-14-2004 02:43 PM
Re: ioctl definition for lvm operations
I am looking for the IOCTLS for doing various LVM operation like query etc...
lv_ioctl() {
case: LVMQUERY:
.......
}
I am looking for the definition of LVMQUERY, I believe it must be available in a header file.
I used tusc on lvdisplay command but it looked like that the ioctls were issued on the group file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-22-2004 11:37 PM
тАО12-22-2004 11:37 PM
Re: ioctl definition for lvm operations
your observation that the ioctl calls are made against the group file are correct. That is what the group file is there for.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-23-2004 12:22 AM
тАО12-23-2004 12:22 AM
Re: ioctl definition for lvm operations
welcome in here! I can't believe that the Guru himself joins the Forums. :-) Great news, indeed. I remember you quite well from an Internals Class in France some years ago.
Best regards...
Dietmar.