mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Stephen Rothwell <sfr@canb.auug.org.au>
To: Andrew Morton <akpm@osdl.org>
Cc: torvalds@osdl.org, linuxppc64-dev@lists.linuxppc.org,
	LKML <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] dynamic addition of virtual disks on PPC64 iSeries
Date: Mon, 24 May 2004 17:05:04 +1000	[thread overview]
Message-ID: <20040524170504.29a8d001.sfr@canb.auug.org.au> (raw)
In-Reply-To: <20040523232920.2fb0640a.akpm@osdl.org>

[-- Attachment #1: Type: text/plain, Size: 1639 bytes --]

Hi Andrew,

On Sun, 23 May 2004 23:29:20 -0700 Andrew Morton <akpm@osdl.org> wrote:
>
> Stephen Rothwell <sfr@canb.auug.org.au> wrote:
> >
> > This patch allows us to dynamically add virtual disks to an iSeries
> >  partition. It works like this: after you have created the virtual disk
> >  file on OS/400 and attached it to the Linux partition, you need to read
> >  /sys/bus/vio/drivers/viodasd/probe.  This will do the probe and list any
> >  new disks discovered.
> > 
> >  This was the nicest way I could think of doing this as the interface to
> >  the hypervisor is polled ...
> 
> Is it possible to present all the virtual disks as partitions of a single
> disk, use the "partition table" to query what is present?

The virtual disks are just that: disks.  They present as /dev/iseries/vda
etc and have their own partitions. I can't change that, I will get skinned
by current users.  It was bad enough when I removed the ide emulation hack
... :-)

(Just in case of confusion: the "Linux partition" I referred to above is a
logical partition fo the whole machine.)

> Or to generate a hotplug event when a disk is added?  Even if there's no
> notification to the kernel, it should be possible to generate the hotplug
> events in response to a /proc-based trigger.

I guess that would be possible.  In this case I am trying to do the
minimum change.

> It's a shame you didn't cc linux-kernel on this - the blockdev police would
> have better ideas than I.

I have now sent the patch to LKML and cc'd this reply there as well.

-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

  parent reply	other threads:[~2004-05-24  7:06 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-24  6:20 Stephen Rothwell
     [not found] ` <20040523232920.2fb0640a.akpm@osdl.org>
2004-05-24  7:05   ` Stephen Rothwell [this message]
2004-05-24  7:23     ` Dave Hansen
2004-05-24  7:36       ` Stephen Rothwell
2004-05-24  8:41   ` Stephen Rothwell
2004-05-24  8:49     ` Andrew Morton
2004-05-24 10:22       ` Stephen Rothwell
2004-05-24 11:50         ` Stephen Rothwell

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=20040524170504.29a8d001.sfr@canb.auug.org.au \
    --to=sfr@canb.auug.org.au \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linuxppc64-dev@lists.linuxppc.org \
    --cc=torvalds@osdl.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®