* [linux-lvm] lvchange -r 256 lv-name does not work
@ 2003-12-01 7:57 Sachin Sant
0 siblings, 0 replies; 2+ messages in thread
From: Sachin Sant @ 2003-12-01 7:57 UTC (permalink / raw)
To: linux-lvm
Hi , i came across a problem with lvchange command.
I have a VG with 3 pv and a lv created using command
lvcreate -i3 -I32 -l98 -nmy_lv my_vg
lvdisplay shows 1024 as the value for Read Ahead Sectors.
When i use the command lvchange to change the value of read ahead
sector with value more that or equal to 256 i get following error..
linux# lvchange -r 340 /dev/my_vg/my_lv
lvchange -- ERROR "Invalid Argument" read ahead sector change
linux#
linux#
Is there a limitation that read ahead value cannot be greater
than 255?
Thanks
-Sachin
^ permalink raw reply [flat|nested] 2+ messages in thread
* [linux-lvm] lvchange -r 256 lv-name does not work
@ 2003-11-27 7:48 Sachin Sant
0 siblings, 0 replies; 2+ messages in thread
From: Sachin Sant @ 2003-11-27 7:48 UTC (permalink / raw)
To: linux-lvm
Hi , i came across a problem with lvchange command.
I have a VG with 3 pv and a lv created using command
lvcreate -i3 -I32 -l98 -nmy_lv my_vg
lvdisplay shows 1024 as the value for Read Ahead Sectors.
When i use the command lvchange to change the value of read ahead
sector with value more that or equal to 256 i get following error..
linux# lvchange -r 340 /dev/my_vg/my_lv
lvchange -- ERROR "Invalid Argument" read ahead sector change
linux#
linux#
After debugging i found that in drivers/block/blkpg.c file blk_ioctl( )
Case BLKRASET :
if (arg > 0xff )
return -EINVAL;
Effectively this does not allow value greater that 255 for read ahead.
Is there a limitation that the read ahead sectors can't have value more
than 255 ? If yes then why lvdisplay shows 1024 as the default value for
read ahead sectors.
Thanks
-Sachin
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-12-01 7:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-12-01 7:57 [linux-lvm] lvchange -r 256 lv-name does not work Sachin Sant
-- strict thread matches above, loose matches on Subject: below --
2003-11-27 7:48 Sachin Sant
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.