[linux-lvm] Max storage size per system

Sharad Tiwari sharad.tiwari at wipro.com
Wed Mar 5 11:40:03 UTC 2003


Hi, 

	Please ignore the disclaimer that comes attached with this mail
... I am trying to get it removed ... just don't have much control on
it!!! 
I am not a part of the lvm-devel mailing list so please just put me in
the CC ...

I am sory for these dumb questions ... but I am a beginner in this world
an hence I need to put forth these rather stupid questions ...
Here are my questions ???

1) Why does lvm need to register itself both as a block device and a
character device ??? (This is what I could make out on seeing the code ,
please correct me if I am wrong)

2) I need to provide an interface in the user-space for doing the
following operations : 

a) open volume device
b) read volume device
c) write volume device
d) ioctl operations on volume device
e) close volume device ...

these perhaps correspond to the following functions in the kernel ...

static int lvm_blk_ioctl(struct inode *, struct file *, uint, ulong);
static int lvm_blk_open(struct inode *, struct file *);

static int lvm_blk_close(struct inode *, struct file *);
static int lvm_get_snapshot_use_rate(lv_t * lv_ptr, void *arg);
static int lvm_user_bmap(struct inode *, struct lv_bmap *);

static int lvm_chr_open(struct inode *, struct file *);
static int lvm_chr_close(struct inode *, struct file *);
static int lvm_chr_ioctl(struct inode *, struct file *, uint, ulong);

Could some-one help me in this ... the library liblvm can be used
perhaps ...I could not make out how the functions in 
liblvm-10.a (available with the lvm-1.0.6.tar.gz)does this ...

Could some-one help me out here ...


Thanks for the help ...
Sharad.


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Wipro_Disclaimer.txt
URL: <http://listman.redhat.com/archives/linux-lvm/attachments/20030305/80534ee4/attachment.txt>


More information about the linux-lvm mailing list