mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Re: [Evms-devel] Re: EVMS Submission for 2.5
@ 2002-10-03 16:09 Steve Pratt
  2002-10-04 14:20 ` Christoph Hellwig
  0 siblings, 1 reply; 14+ messages in thread
From: Steve Pratt @ 2002-10-03 16:09 UTC (permalink / raw)
  To: Christoph Hellwig; +Cc: Kevin M Corry, torvalds, linux-kernel, evms-devel


Christoph Hellwig wrote:

>> subdirectories were created: drivers/evms/ for the main source code,
>> and include/linux/evms/ for the header files.

>What's the reason to not have the headers under drivers/evms.

None, really. Why does md put it's headers in include/linux/raid ???
We can put them wherever.

> And why don'T you just use drivers-md like all other volume management
drivers?

Because it is getting crowded.  Why does every filesystem create it's own
directory in fs?  Maybe drivers/vm/md drivers/vm/dm drivers/vm/evms would
be better.  Again, we can put it wherever, this just seems like a logical
place.

Steve





^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [Evms-devel] Re: EVMS Submission for 2.5
  2002-10-03 16:09 [Evms-devel] Re: EVMS Submission for 2.5 Steve Pratt
@ 2002-10-04 14:20 ` Christoph Hellwig
  0 siblings, 0 replies; 14+ messages in thread
From: Christoph Hellwig @ 2002-10-04 14:20 UTC (permalink / raw)
  To: Steve Pratt; +Cc: Kevin M Corry, torvalds, linux-kernel, evms-devel

On Thu, Oct 03, 2002 at 11:09:37AM -0500, Steve Pratt wrote:
> None, really. Why does md put it's headers in include/linux/raid ???
> We can put them wherever.

MD is legacy code from the time where people still liked kernel headers
to /usr/include/linux

> Because it is getting crowded.  Why does every filesystem create it's own
> directory in fs?

Well, evms is not a single driver but a higher layer with lots of subdrivers.
E.g. once you start to use the MD code without copying it around it's in
drivers/md anyway and LVM! thæt is there currently will go away.


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [Evms-devel] Re: EVMS Submission for 2.5
  2002-10-04  8:07             ` Oliver Neukum
@ 2002-10-05  0:06               ` Greg KH
  0 siblings, 0 replies; 14+ messages in thread
From: Greg KH @ 2002-10-05  0:06 UTC (permalink / raw)
  To: Oliver Neukum; +Cc: linux-kernel, evms-devel

On Fri, Oct 04, 2002 at 10:07:24AM +0200, Oliver Neukum wrote:
> On Friday 04 October 2002 00:56, Greg KH wrote:
> > On Thu, Oct 03, 2002 at 11:02:36PM +0200, Oliver Neukum wrote:
> > > Perhaps this is a misunderstanding.
> > > You need to report changes of the actual physical medium of eg. a zip
> > > drive. How you want to do this from a class driver, I fail to see.
> >
> > When a "medium" goes away from the system, it is unregistered somehow,
> > right?  So, in the disk class, that device would disappear, and cause
> > the /sbin/hotplug event.
> 
> Well, sadly this is not the case. You can put a medium into a drive and
> pull it out without the kernel ever noticing. Unless of course you try to use
> the thing. But even in this case there's no hotplug event.
> Yet user space and evms have to learn about it in the long term.
> Changing a medium can mean that a new type of medium is inserted.
> A modern zip drive goes from 100M(ro) to 250M(rw) and even 750M(rw)
> We need to know and report.

I agree we need to know this.  And if the kernel figures it out
(somehow) then userspace should also be told about this, through
/sbin/hotplug.  That's all I'm saying.


thanks,

greg k-h

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [Evms-devel] Re: EVMS Submission for 2.5
  2002-10-04 13:07     ` [Evms-devel] " Kevin Corry
@ 2002-10-04 17:29       ` Kai Henningsen
  0 siblings, 0 replies; 14+ messages in thread
From: Kai Henningsen @ 2002-10-04 17:29 UTC (permalink / raw)
  To: corryk; +Cc: linux-kernel

corryk@us.ibm.com (Kevin Corry)  wrote on 04.10.02 in <02100408071900.02266@boiler>:

> On Friday 04 October 2002 08:06, Alan Cox wrote:

> > IMHO the Lindent script is broken. It should also specify a line length
> > of something like 256 so it doesnt go mashing lines.
>
> Well, currently the Lindent script specifies a line length of 80 characters.
> Should this be changed?
>
> indent -kr -i8 -ts8 -sob -l80 -ss -bs -psl "$@"
>                          ^^^^
>
> The CodingStyle document doesn't seem to specifically mention line length,
> but does imply in a couple of places that code should fit nicely on a
> 80-column, 24/25-line terminal.

I'd say that keeping the lines at 80 max is a real requirement, but  
Lindent is a bad way to implement it, as it just isn't intelligent enough  
to find good breaks in overly long lines.

MfG Kai

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [Evms-devel] Re: EVMS Submission for 2.5
  2002-10-04 13:06   ` Alan Cox
@ 2002-10-04 13:07     ` Kevin Corry
  2002-10-04 17:29       ` Kai Henningsen
  0 siblings, 1 reply; 14+ messages in thread
From: Kevin Corry @ 2002-10-04 13:07 UTC (permalink / raw)
  To: Alan Cox; +Cc: Greg KH, Linux Kernel Mailing List, evms-devel

On Friday 04 October 2002 08:06, Alan Cox wrote:
> On Fri, 2002-10-04 at 01:39, Kevin Corry wrote:
> > Yep, you guessed it. I'm no big fan of Lindent. In my opinion, it makes
> > some really bad choices about how to break long lines (among other
> > things), as you've kindly pointed out. But, I had to start somewhere and
> > wanted to get something out before I left for the day. Obviously the AIX
> > plugin will need some additional attention at some point.
>
> IMHO the Lindent script is broken. It should also specify a line length
> of something like 256 so it doesnt go mashing lines.

Well, currently the Lindent script specifies a line length of 80 characters. 
Should this be changed?

indent -kr -i8 -ts8 -sob -l80 -ss -bs -psl "$@"
                         ^^^^

The CodingStyle document doesn't seem to specifically mention line length, 
but does imply in a couple of places that code should fit nicely on a 
80-column, 24/25-line terminal.

-- 
Kevin Corry
corryk@us.ibm.com
http://evms.sourceforge.net/

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [Evms-devel] Re: EVMS Submission for 2.5
  2002-10-03 22:56           ` Greg KH
  2002-10-03 23:03             ` Alexander Viro
@ 2002-10-04  8:07             ` Oliver Neukum
  2002-10-05  0:06               ` Greg KH
  1 sibling, 1 reply; 14+ messages in thread
From: Oliver Neukum @ 2002-10-04  8:07 UTC (permalink / raw)
  To: Greg KH; +Cc: Alexander Viro, Kevin Corry, linux-kernel, evms-devel

On Friday 04 October 2002 00:56, Greg KH wrote:
> On Thu, Oct 03, 2002 at 11:02:36PM +0200, Oliver Neukum wrote:
> > Perhaps this is a misunderstanding.
> > You need to report changes of the actual physical medium of eg. a zip
> > drive. How you want to do this from a class driver, I fail to see.
>
> When a "medium" goes away from the system, it is unregistered somehow,
> right?  So, in the disk class, that device would disappear, and cause
> the /sbin/hotplug event.

Well, sadly this is not the case. You can put a medium into a drive and
pull it out without the kernel ever noticing. Unless of course you try to use
the thing. But even in this case there's no hotplug event.
Yet user space and evms have to learn about it in the long term.
Changing a medium can mean that a new type of medium is inserted.
A modern zip drive goes from 100M(ro) to 250M(rw) and even 750M(rw)
We need to know and report.

> This is assuming that we can detect media changes, which is a whole
> different topic that I don't want to get involved with :)

Your wishes you are entiteled to ;-) Unfortunately this is not a viable 
position speaking long term.

> > Beside that you need of course to report things like iscsi which have
> > volumes, but not really devices.
>
> But iscsi registers these "volumes" with the scsi layer, right?  If so,
> everything is fine (take a look at the driverfs scsi tree right now,
> it's a bit messy, but you get the idea.).  If iscsi doesn't register
> these volumes with the scsi layer, how does the scsi layer know to talk
> to them?

I'll look at the source.

> In other words, if the kernel knows about a type of device, which I'm
> pretty sure it has to in order to talk to it, that device will generate
> /sbin/hotplug events when it shows up and is removed.
>
> As for implementation details, if you see a type of device right now
> that does not generate these kinds of events, please let me know.

Device management is all right, but volume management operates at the
medium level, or rather in between. What do you do if somebody adds drives
to a SCSI-RAID converter.
Evms currently polls on demand. I see no way to do it differently with
the present infrastructure.

	Regards
		Oliver

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [Evms-devel] Re: EVMS Submission for 2.5
  2002-10-03 22:56           ` Greg KH
@ 2002-10-03 23:03             ` Alexander Viro
  2002-10-04  8:07             ` Oliver Neukum
  1 sibling, 0 replies; 14+ messages in thread
From: Alexander Viro @ 2002-10-03 23:03 UTC (permalink / raw)
  To: Greg KH; +Cc: Oliver Neukum, Kevin Corry, linux-kernel, evms-devel



On Thu, 3 Oct 2002, Greg KH wrote:

> On Thu, Oct 03, 2002 at 11:02:36PM +0200, Oliver Neukum wrote:
> > Perhaps this is a misunderstanding.
> > You need to report changes of the actual physical medium of eg. a zip drive.
> > How you want to do this from a class driver, I fail to see.
> 
> When a "medium" goes away from the system, it is unregistered somehow,
> right?  So, in the disk class, that device would disappear, and cause
> the /sbin/hotplug event.
> 
> This is assuming that we can detect media changes, which is a whole
> different topic that I don't want to get involved with :)

Our mechanism is retroactive.  We can (kinda-sorta) tell "did the
media change happen since the last time we'd asked".  That's it.
And even that is less than accurate - many drivers decide to be on
the safe side and _always_ answer "yes, it did".

And yes, it sucks.


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [Evms-devel] Re: EVMS Submission for 2.5
  2002-10-03 21:02         ` Oliver Neukum
@ 2002-10-03 22:56           ` Greg KH
  2002-10-03 23:03             ` Alexander Viro
  2002-10-04  8:07             ` Oliver Neukum
  0 siblings, 2 replies; 14+ messages in thread
From: Greg KH @ 2002-10-03 22:56 UTC (permalink / raw)
  To: Oliver Neukum; +Cc: Alexander Viro, Kevin Corry, linux-kernel, evms-devel

On Thu, Oct 03, 2002 at 11:02:36PM +0200, Oliver Neukum wrote:
> Perhaps this is a misunderstanding.
> You need to report changes of the actual physical medium of eg. a zip drive.
> How you want to do this from a class driver, I fail to see.

When a "medium" goes away from the system, it is unregistered somehow,
right?  So, in the disk class, that device would disappear, and cause
the /sbin/hotplug event.

This is assuming that we can detect media changes, which is a whole
different topic that I don't want to get involved with :)

> Beside that you need of course to report things like iscsi which have
> volumes, but not really devices.

But iscsi registers these "volumes" with the scsi layer, right?  If so,
everything is fine (take a look at the driverfs scsi tree right now,
it's a bit messy, but you get the idea.).  If iscsi doesn't register
these volumes with the scsi layer, how does the scsi layer know to talk
to them?

In other words, if the kernel knows about a type of device, which I'm
pretty sure it has to in order to talk to it, that device will generate
/sbin/hotplug events when it shows up and is removed.

As for implementation details, if you see a type of device right now
that does not generate these kinds of events, please let me know.

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [Evms-devel] Re: EVMS Submission for 2.5
  2002-10-03 19:52     ` [Evms-devel] " Oliver Neukum
@ 2002-10-03 21:37       ` Greg KH
  2002-10-03 21:02         ` Oliver Neukum
  0 siblings, 1 reply; 14+ messages in thread
From: Greg KH @ 2002-10-03 21:37 UTC (permalink / raw)
  To: Oliver Neukum; +Cc: Alexander Viro, Kevin Corry, linux-kernel, evms-devel

On Thu, Oct 03, 2002 at 09:52:12PM +0200, Oliver Neukum wrote:
> 
> device != medium
> There's a need to report that as well.

I completely agree.  That's why I'm working on adding class support to
/sbin/hotplug which will enable all "mediums" that are added or removed
within the kernel to notify userspace of this event.

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [Evms-devel] Re: EVMS Submission for 2.5
  2002-10-03 21:37       ` Greg KH
@ 2002-10-03 21:02         ` Oliver Neukum
  2002-10-03 22:56           ` Greg KH
  0 siblings, 1 reply; 14+ messages in thread
From: Oliver Neukum @ 2002-10-03 21:02 UTC (permalink / raw)
  To: Greg KH; +Cc: Alexander Viro, Kevin Corry, linux-kernel, evms-devel

On Thursday 03 October 2002 23:37, Greg KH wrote:
> On Thu, Oct 03, 2002 at 09:52:12PM +0200, Oliver Neukum wrote:
> > device != medium
> > There's a need to report that as well.
>
> I completely agree.  That's why I'm working on adding class support to
> /sbin/hotplug which will enable all "mediums" that are added or removed
> within the kernel to notify userspace of this event.

Ehm, how ?
Perhaps this is a misunderstanding.
You need to report changes of the actual physical medium of eg. a zip drive.
How you want to do this from a class driver, I fail to see.

Beside that you need of course to report things like iscsi which have volumes,
but not really devices.

	Regards
		Oliver

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [Evms-devel] Re: EVMS Submission for 2.5
  2002-10-03 16:30   ` Greg KH
@ 2002-10-03 19:52     ` Oliver Neukum
  2002-10-03 21:37       ` Greg KH
  0 siblings, 1 reply; 14+ messages in thread
From: Oliver Neukum @ 2002-10-03 19:52 UTC (permalink / raw)
  To: Greg KH, Alexander Viro; +Cc: Kevin Corry, linux-kernel, evms-devel


> All devices that have a "struct device" (which should be about
> everything these days, if not, please let me know), cause a
> /sbin/hotplug event to happen.  This event says what type of device was
> added or removed, and includes the location of the device in the
> driverfs tree so that userspace can then determine what it wants to do
> with this device.

device != medium
There's a need to report that as well. The current hotplugging model
needs some more types of events before it is ready for all types of
applications.
In fact a change of medium can radically alter features of a device,
eg. from ro to rw.

	Regards
		Oliver

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [Evms-devel] Re: EVMS Submission for 2.5
  2002-10-03 15:31     ` Christoph Hellwig
@ 2002-10-03 15:41       ` Mike Tran
  0 siblings, 0 replies; 14+ messages in thread
From: Mike Tran @ 2002-10-03 15:41 UTC (permalink / raw)
  To: Christoph Hellwig; +Cc: Shawn, linux-kernel, evms-devel

Christoph Hellwig wrote:

> On Thu, Oct 03, 2002 at 10:03:41AM -0500, Shawn wrote:
> > On 10/03, Christoph Hellwig said something like:
> > > On Wed, Oct 02, 2002 at 04:33:20PM -0500, Kevin Corry wrote:
> > > > EVMS provides a new, stand-alone subsystem to the kernel
> > >
> > > i.e. it duplictes existing block layer/volume managment functionality..
> >
> > Ok, LVM1 is non-existant if that's what you're referring to. Really,
> > this replaces LVM1, but your statement WRT md still has merit. As for
> > md duplication, it has been stated already that a preferred approach
> > might be to send only core functionality bits for now, leaving that
> > out till that question can be addressed.
>
> I speak of all drivers/md/* and fs/partitions/*.
>

I have sent Neil Brown an email asking for his thoughts on a possible code
merge.
Neil is on vacation until 10/7.

I would say that the EMVS MD code & original MD code are very similar.
The most significant difference is the MD array discovery and setup code.
EVMS MD does in-kernel discovery, whereas Linux MD has both in-kernel
discovery (via fs/partitions/check.c) and user space initiated discovery
(IOCTL).

Mike Tran



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [Evms-devel] Re: EVMS Submission for 2.5
  2002-10-03 14:59   ` [Evms-devel] " Michael Clark
@ 2002-10-03 15:08     ` Christoph Hellwig
  0 siblings, 0 replies; 14+ messages in thread
From: Christoph Hellwig @ 2002-10-03 15:08 UTC (permalink / raw)
  To: Michael Clark; +Cc: Kevin Corry, torvalds, linux-kernel, evms-devel

> (debian kernel images are always unpatched mainline)

The diff is pretty huge for 'unpatched'.


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [Evms-devel] Re: EVMS Submission for 2.5
  2002-10-03 14:32 ` Christoph Hellwig
@ 2002-10-03 14:59   ` Michael Clark
  2002-10-03 15:08     ` Christoph Hellwig
  2002-10-03 15:03   ` Shawn
  1 sibling, 1 reply; 14+ messages in thread
From: Michael Clark @ 2002-10-03 14:59 UTC (permalink / raw)
  To: Christoph Hellwig; +Cc: Kevin Corry, torvalds, linux-kernel, evms-devel

On 10/03/02 22:32, Christoph Hellwig wrote:

>>version of EVMS was released. EVMS has been accepted into the
>>Debian (Woody and Sid versions)
> 
> 
> Can't find evms in my stock woody or sid kernel images.. (neither in the
> sarge ones, btw..)

Ships as a kernel patch deb as per most other debian kernel stuff that
isn't in mainline (debian kernel images are always unpatched mainline)

This is on my sid machine

$ apt-cache pkgnames | grep evms
evms-ncurses
libevms0
libevms1
evms-cli
evms-gui
kernel-patch-evms
libevms-dev
evms-lvmutils
evms

This is on one of my woody machines

$ apt-cache pkgnames | grep evms
evms-ncurses
libevms0
libevms1
evms-cli
evms-gui
kernel-patch-evms
libevms-dev
evms-lvmutils
evms

~mc


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2002-10-05  0:03 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-03 16:09 [Evms-devel] Re: EVMS Submission for 2.5 Steve Pratt
2002-10-04 14:20 ` Christoph Hellwig
  -- strict thread matches above, loose matches on Subject: below --
2002-10-03 16:13 Greg KH
2002-10-03 16:21 ` Alexander Viro
2002-10-03 16:30   ` Greg KH
2002-10-03 19:52     ` [Evms-devel] " Oliver Neukum
2002-10-03 21:37       ` Greg KH
2002-10-03 21:02         ` Oliver Neukum
2002-10-03 22:56           ` Greg KH
2002-10-03 23:03             ` Alexander Viro
2002-10-04  8:07             ` Oliver Neukum
2002-10-05  0:06               ` Greg KH
2002-10-02 21:33 Kevin Corry
2002-10-03 14:32 ` Christoph Hellwig
2002-10-03 14:59   ` [Evms-devel] " Michael Clark
2002-10-03 15:08     ` Christoph Hellwig
2002-10-03 15:03   ` Shawn
2002-10-03 15:31     ` Christoph Hellwig
2002-10-03 15:41       ` [Evms-devel] " Mike Tran
2002-10-04  0:39 ` Kevin Corry
2002-10-04 13:06   ` Alan Cox
2002-10-04 13:07     ` [Evms-devel] " Kevin Corry
2002-10-04 17:29       ` Kai Henningsen

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®