[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [linux-lvm] lvmtrim



On Wed, Oct 19, 2011 at 02:07:23PM +0100, Alasdair G Kergon wrote:
> 2) Add vgtrim (+man page) which takes VG-style arguments, uses
> process_each_pv_in_vg which uses process_each_segment_in_pv which checks if
> segment is free and if so calls the code from (1) to issue a discard on it.
 
Adding a new cmd involves:
  create tools/vgtrim.c   (e.g. use stripped down vgdisplay.c as template?)
  Add to SOURCES in Makefile
  Add section to commands.h (alphabetically)

Alasdair


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]