All of lore.kernel.org
 help / color / mirror / Atom feed
From: Vivek Goyal <vgoyal-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
To: Dave Young <dyoung-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
Cc: chaowang-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org,
	harald-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org,
	initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH] Add option to bring up a device in initramfs
Date: Tue, 14 Aug 2012 15:36:07 -0400	[thread overview]
Message-ID: <20120814193607.GB5760@redhat.com> (raw)
In-Reply-To: <5029EFCF.4060005-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>

On Tue, Aug 14, 2012 at 02:27:27PM +0800, Dave Young wrote:
> On 08/13/2012 11:10 PM, Vivek Goyal wrote:
> 
> > On Thu, Aug 09, 2012 at 11:08:48AM +0800, Dave Young wrote:
> >>
> >> Kdump support dump to raw device which could be on top of complex storage
> >> such as multipath and iscsi which are standalone dracut modules.
> >>
> >> Add a --device option to dracut which will add the device to host_devs so
> >> dracut can add the dependent modules automaticlly and enable them in initramfs.
> >>
> > 
> > You have not specified any format for --device argument? What do you expect
> > there? Device name, UUID, udev persistent link, or what?
> 
> 
> It's a device name, should metion it in doc as well.
> 
> > 
> > Secondly, do we need some extra code to make sure somebody waits for
> > this device to come up? Who makes sure that initqueue does not exit
> > till this device node comes up.
> 
> 
> I see there's a wait-mount-dev.sh in 95fstab-sys module which is for
> waiting for the mount needed dev.
> 
> Currently dracut maintains host_devs and host_fs_types, host_fs_types
> are mainly used inst the fs kernel modules. Other than the filesystem
> modules we should use host_devs instead, ie. introduce
> for_each_host_devs for modules such as multipath and iscsi using.

I see that iscsi is using for_each_host_dev_fs, which has both device
and filesystem info. Same is the case with multipath.

May be add raw device in host_dev_fs with filesystem type as "raw" and
special case "raw" whoever relies on this info. There might be other
better ways to handle this though.

Thanks
Vivek

      parent reply	other threads:[~2012-08-14 19:36 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-09  3:08 [PATCH] Add option to bring up a device in initramfs Dave Young
     [not found] ` <20120809030848.GA10460-je1gSBvt1Td3da3rpXeqgR/sF2h8X+2i0E9HWUfgJXw@public.gmane.org>
2012-08-13 15:10   ` Vivek Goyal
     [not found]     ` <20120813151029.GE24876-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2012-08-14  6:27       ` Dave Young
     [not found]         ` <5029EFCF.4060005-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2012-08-14 19:36           ` Vivek Goyal [this message]

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=20120814193607.GB5760@redhat.com \
    --to=vgoyal-h+wxahxf7alqt0dzr+alfa@public.gmane.org \
    --cc=chaowang-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
    --cc=dyoung-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
    --cc=harald-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
    --cc=initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    /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.