All of lore.kernel.org
 help / color / mirror / Atom feed
From: Arkadiusz Miskiewicz <arekm@pld-linux.org>
To: linux-lvm@sistina.com
Cc: Luca Berra <bluca@comedia.it>
Subject: Re: [linux-lvm] lvm on initrd
Date: Sun Jan 25 15:12:01 2004	[thread overview]
Message-ID: <200401252110.07895.arekm@pld-linux.org> (raw)
In-Reply-To: <20040124095810.GA6204@percy.comedia.it>

Dnia sob 24. stycznia 2004 10:58, Luca Berra napisa³:
> On Sat, Jan 24, 2004 at 01:37:35AM +0100, Arkadiusz Miskiewicz wrote:
> >Are there any plans to add makefile target which would produce very small
> > + features stripped down lvm binary with only two commands:
> >vgscan vgchange
> >for usage on initrd images?
>
> patches for lvm2 are:
> http://www.comedia.it/~bluca/cooker/lvm2/lvm2-2.00.08-7mdk/LVM2.2.00.08-die
>t.patch.bz2
Thanks, I've modified these for my needs.
http://cvs.pld-linux.org/cgi-bin/cvsweb/SOURCES/lvm2-initrd.patch?rev=1.1

Unfortunately this doesn't give any significant size drop:
lvm staticly linked with uClibc and device-mapper lib with all features
-rwxr-xr-x    1 misiek   users      555815 2004-01-25 21:05 initrd-lvm
lvm staticly linked with uClibc and device-mapper lib using my patch above (so 
only vgscan and vgchange functions available)
-rwxr-xr-x    1 root     root       482428 2004-01-25 20:51 initrd-lvm

How these sizes look with dietlibc?

Also some problems with lvm way of checking what command user wants based on 
argv[0] came out:
[root@arm misiek]# /sbin/initrd-lvm
  No such command.  Try 'help'.
[root@arm misiek]# ln -s /sbin/initrd-lvm lvm
[root@arm misiek]# ./lvm
  Please supply an LVM command.
  Available lvm commands:
  Use 'lvm help <command>' for more information

  help            Display help for commands
  vgchange        Change volume group attributes
  vgscan          Search for all volume groups
  version         Display software and driver version information

It would be much better if when argv[0] is not known internally for lvm then 
work as argv[0] = lvm.

> L.

-- 
Arkadiusz Mi¶kiewicz     CS at FoE, Wroclaw University of Technology
arekm.pld-linux.org, 1024/3DB19BBD, JID: arekm.jabber.org, PLD/Linux

  reply	other threads:[~2004-01-25 15:12 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-23 19:40 [linux-lvm] lvm on initrd Arkadiusz Miskiewicz
2004-01-24  4:59 ` Luca Berra
2004-01-25 15:12   ` Arkadiusz Miskiewicz [this message]
2004-01-26 16:55     ` Luca Berra

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200401252110.07895.arekm@pld-linux.org \
    --to=arekm@pld-linux.org \
    --cc=bluca@comedia.it \
    --cc=linux-lvm@sistina.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.