public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: [PATCH] 2.5.18 IDE 73
@ 2002-05-30  0:19 Andries.Brouwer
  2002-05-30 13:02 ` Martin Dalecki
  0 siblings, 1 reply; 41+ messages in thread
From: Andries.Brouwer @ 2002-05-30  0:19 UTC (permalink / raw)
  To: Andries.Brouwer, dalecki; +Cc: linux-kernel, torvalds

    Ahhh... wait a moment you are the one who is responsible for
    util-linux - wouldn't you care to take a bunch of patches?!

Of course - improvements are always welcome.
(But I try to be slightly more careful than you are.
Util-linux runs on all libc's and all kernels, from libc4 to glibc2
and from 0.99 to 2.5. So, changes must be compatible.)

    No need to inevent here. No need to do the book keeping in kernel.

Some need. Things like mount-by-label want to know what partitions
exist in order to look at the labels on each.
Yes, we really need a list of disk-like devices.
The gendisk chain.

Andries


^ permalink raw reply	[flat|nested] 41+ messages in thread
* Re: [PATCH] 2.5.18 IDE 73
@ 2002-05-30 15:56 Andries.Brouwer
  0 siblings, 0 replies; 41+ messages in thread
From: Andries.Brouwer @ 2002-05-30 15:56 UTC (permalink / raw)
  To: alan, dalecki; +Cc: Andries.Brouwer, linux-kernel, torvalds

> LAST WARNING:

> Every body out there: watch out to use LABEL= in /etc/fstab or you will
> not be able to reboot between 2.4 and 2.5 soon!

Funny. I hope you realize that there are lots of filesystems out there
that do not support a LABEL=.

Andries

^ permalink raw reply	[flat|nested] 41+ messages in thread
* Re: [PATCH] 2.5.18 IDE 73
@ 2002-05-30 14:43 Andries.Brouwer
  2002-05-30 14:01 ` Martin Dalecki
  0 siblings, 1 reply; 41+ messages in thread
From: Andries.Brouwer @ 2002-05-30 14:43 UTC (permalink / raw)
  To: Andries.Brouwer, dalecki; +Cc: linux-kernel, torvalds

    > Of course - improvements are always welcome.
    > (But I try to be slightly more careful than you are.
    > Util-linux runs on all libc's and all kernels, from libc4 to glibc2
    > and from 0.99 to 2.5. So, changes must be compatible.)

    Having them compatible acroess an insane range of kernels
    is a nice but futile exercise.
    Perhaps this partly explains why:

    1. util-linux doesn't cover half of the system utilities needed on
        a sanely actual Linux system.

    2. The Linux vendors have to apply insane number of patches to it
        util it's moderately usable.

If you do the kernel ATA stuff, I'll take care of util-linux.

(Does it need more utilities? Probably those are in some other package.
Sometimes stuff is added, but not very often. However, your suggestions
are welcome.
Do the vendors add patches? Half of that is vendor extensions, that is
their business. Half of that is their stupidity. They blindly copy the
patches other vendors apply "it is a patch - must be an improvement";
sometimes I have to reject the same buggy patch more than a dozen times.
When I ask for the reason of a patch, they don't know themselves.)

    >     No need to invent here. No need to do the book keeping in kernel.
    > 
    > Some need. Things like mount-by-label want to know what partitions
    > exist in order to look at the labels on each.
    > Yes, we really need a list of disk-like devices.
    > The gendisk chain.

    No I don't see that point. Data which has to be persistant across
    reboots is simple data which has to reside on disk. That's the
    way it is in UNIX (PalmOS to name an example).

Maybe you never heard of mount-by-label?

Andries

^ permalink raw reply	[flat|nested] 41+ messages in thread
* Re: [PATCH] 2.5.18 IDE 73
@ 2002-05-30 12:35 Bartlomiej Zolnierkiewicz
  0 siblings, 0 replies; 41+ messages in thread
From: Bartlomiej Zolnierkiewicz @ 2002-05-30 12:35 UTC (permalink / raw)
  To: David Woodhouse; +Cc: alan, dalecki, vojtech, gerald, linux-kernel


> On the subject of blacklists -- when downgrading the speed of a drive
> because it's found a blacklist, or indeed for any other reason, please
> _print_ the reason for doing so.
> (...)

fully agreed, already discussed with Martin
things are going slow because first I clean this fsking mess
then add new stuff

greets
--
bkz


^ permalink raw reply	[flat|nested] 41+ messages in thread
* Re: [PATCH] 2.5.18 IDE 73
@ 2002-05-29 23:40 Andries.Brouwer
  2002-05-29 22:53 ` Martin Dalecki
  0 siblings, 1 reply; 41+ messages in thread
From: Andries.Brouwer @ 2002-05-29 23:40 UTC (permalink / raw)
  To: Andries.Brouwer, dalecki; +Cc: linux-kernel, torvalds

>> About scanning for partitions:
>> Several partitioning schemes exist, and reading partition tables is not
>> something a driver should do without getting explicit requests.
>> For all we know the disk contents may be completely random.

> You are right but the fact is right now we have to do it this way.

That is OK - I just write to make sure we all agree that this must
only be an intermediate stage. Scanning for partitions must not be
something obscure that happens deep down in some driver.

>> You should offer the list of disks seen to user space, and user space
>> should decide which disks have to be investigated, and tell the kernel
>> about the partitions it wants to have on these disks.
>> That way all knowledge about partitioning, dynamic disks, disk managers
>> and the like is removed from the kernel, and moved into partx-type code.

> But there is one thing, which isn't prette about the above sheme: races
> and atomicity of operations... Well this could be solved
> by making the mount system call passing this information as a parameters.
> You wouldn't even need to pass any list of disks to user land - we don't
> do it right now.

You see, some disks belong to RAIDs, some disks are in reality very
slow objects, like compact flash cards or so, some disk have some foreign
partitioning scheme. There can be all kinds of reasons why we do not
want to start reading and interpreting any random disk-like device.

I know that we used to do this, but it was wrong, so we must slowly move
to a setup where we do no longer do this.

So, user space is started on a ramdisk or so, and gets parameters
rootdev=, rootpttype=, rootpartition=, rootfstype=.
Now it can use rootpttype to scan rootdev, find the partitions,
find rootpartition, mount it as type rootfstype on /.

Afterwards the existence of more devices, possibly with partitions,
becomes of interest, for example because there is a "mount -a" somewhere.
Here userspace needs a list of available devices. Maybe /proc/partitions.

Andries

^ permalink raw reply	[flat|nested] 41+ messages in thread
* Re: [PATCH] 2.5.18 IDE 73
@ 2002-05-29 18:16 Andries.Brouwer
  0 siblings, 0 replies; 41+ messages in thread
From: Andries.Brouwer @ 2002-05-29 18:16 UTC (permalink / raw)
  To: dalecki, gerald; +Cc: linux-kernel

> hdparm -i is executing the drive id command directly
> and does *not* rely on the internally permanently dragged around id structure.

The situation used to be that "hdparm -i" used the information read at boot time,
while "hdparm -I" read the current situation. That was sometimes useful.

Andries

^ permalink raw reply	[flat|nested] 41+ messages in thread
* Re: [PATCH] 2.5.18 IDE 73
@ 2002-05-29 18:07 Andries.Brouwer
  2002-05-29 21:57 ` Martin Dalecki
  0 siblings, 1 reply; 41+ messages in thread
From: Andries.Brouwer @ 2002-05-29 18:07 UTC (permalink / raw)
  To: dalecki, torvalds; +Cc: linux-kernel

    - Don't allow check_partition to be more clever then the writer of a driver.
       It was interfering with drivers which check partitions as they go and
       finally if we want to spew something about it - we can do it ourself.

    - Eliminate ide_geninit(). We scan for partitions now inside the recently
       introduced attach method. register_disk() is broken by the way and 90% of
       places where it's used it is doing literally nothing. Either some one didn't
       finish some code or the code is basically just junk from the past.

       Anyway we grok the partitions now one by one as we detect the channels.

Pity you send this gzipped, otherwise I would have looked at the code.

Yes, 90% of the uses of register_disk() are empty. I submitted a patch
to remove this cruft last year, but Al was attached to it - wanted to
make them nonempty.

About scanning for partitions I say the same thing I said to Al a few
days ago:
Several partitioning schemes exist, and reading partition tables is not
something a driver should do without getting explicit requests.
For all we know the disk contents may be completely random.

You should offer the list of disks seen to user space, and user space
should decide which disks have to be investigated, and tell the kernel
about the partitions it wants to have on these disks.
That way all knowledge about partitioning, dynamic disks, disk managers
and the like is removed from the kernel, and moved into partx-type code.


Andries

^ permalink raw reply	[flat|nested] 41+ messages in thread
* Re: [PATCH] 2.5.18 IDE 73
@ 2002-05-29 13:59 Gerald Champagne
  2002-05-29 13:03 ` Martin Dalecki
  0 siblings, 1 reply; 41+ messages in thread
From: Gerald Champagne @ 2002-05-29 13:59 UTC (permalink / raw)
  To: linux-kernel; +Cc: dalecki


>- ide_driveid_update is gone. We don't report the drive id through 
> /proc/ide and we don't have to update it any longer on the fly. Still 
> someone out there complaining that it went away!?

But the id information is still available through the ioctl interface. 
ide_driveid_update was used to update the dma_ultra, dma_mword, and
dma_lword fields in the id structure after changing the rate with an
ioctl command.  Won't these fields be wrong if the rate is changed after
initialization?  Won't "hdparm -i" show outdated and incorrect
information.

It's good to see the duplicate identify routine go away, but the ioctl
shouldn't return incorrect information.  Can the remaining identify
routine be modified and called directly from the ioctl that returns the
id information?

Gerald




^ permalink raw reply	[flat|nested] 41+ messages in thread
* Linux-2.5.18
@ 2002-05-25  2:02 Linus Torvalds
  2002-05-29 12:11 ` [PATCH] 2.5.18 IDE 73 Martin Dalecki
  0 siblings, 1 reply; 41+ messages in thread
From: Linus Torvalds @ 2002-05-25  2:02 UTC (permalink / raw)
  To: Kernel Mailing List


Various bits here and there. 

		Linus

----

Summary of changes from v2.5.17 to v2.5.18
============================================

<Andries.Brouwer@cwi.nl>
	o usb-storage

<acme@conectiva.com.br>
	o drivers/char/rio/*.c

<beattie@beattie-home.net>
	o change USB scanner maintainer

Brian Gerst <bgerst@didntduck.org>
	o cpu_has_tsc
	o cpu_has_mmx
	o remaining cpu_has cleanups

<borisitk@fortunet.com>
	o [ARM 1146/1: Fix complilation bug in 2.5.10-rmk1 for jffs

<ccaputo@alt.net>
	o net/core/sock.c: Fix typo in sysctl_{w,m}mem_default init.

<ch@hpl.hp.com>
	o [ARM 1136/1: missing include in badge4.c
	o [ARM 1133/1: Small fixes for BadgePAD 4 pcmcia support.
	o [ARM 1137/1: additional defines for SA-1111 OHCI

<colin@gibbs.dhs.org>
	o Sparc: Do not BUG in srmmu_pte_alloc_one.
	o include/asm-sparc/pgalloc.h: In pmd_alloc_one, dont BUG just return NULL

Martin Dalecki <dalecki@evision-ventures.com>
	o 2.5.17 dquota punishment
	o 2.5.17 IDE 65-70

<davem@nuts.ninka.net>
	o Sparc: Use dma_addr_t and size_t in sparc32 DMA function args.
	o IPv4: Make pkt_too_big debug msg more informative.
	o drivers/net/sunlance.c: Make init_block_dvma a dma_addr_t
	o Tigon3: Fix typo in netgear ga320t support changes.
	o Sparc64 updates
	o Fix build fallout from namei.h/jiffies.h changes.
	o Sparc64 build fixes:

<david-b@pacbell.net>
	o cpia_usb, remove urb->next
	o usbcore, remove urb->next
	o hcds, remove urb->next
	o audio, set urb->interval

<dhowells@redhat.com>
	o rwsem update

<greg@kroah.com>
	o USB Makefile bug fix
	o USB build changes
	o USB se401, remove urb->next usage
	o USB stv680, remove urb->next usage
	o usb.h #include dependancies and whitespace cleanup
	o USB cdc-ether driver compile time fix
	o USB storage #include fixup
	o USB driver #include cleanups

Christoph Hellwig <hch@infradead.org>
	o fix bitop warnings in parallel port generic driver
	o buffermem_pages removal (1/5)
	o fix sr compile warnings
	o bfs header move around + warning fix
	o split namei.h out of fs.h
	o include buffer_head.h in actual users instead of fs.h (1/10)

<jbglaw@lug-owl.de>
	o Update to srm_env.c driver (for Alpha arch.)

<kai@tp1.ruhr-uni-bochum.de>
	o kbuild: Make USE_STANDARD_AS_RULE default
	o Fix UTS_MACHINE
	o Fix building .i / .s files for testing
	o kbuild: Stop immediately on error
	o kbuild: aic7xxx firmware build should not overwrite shipped files
	o kbuild: Regenerate include/linux/version.h only if necessary
	o kbuild: Restore build nr, improve vmlinux link
	o drivers/net: Simplify linking of subdirs
	o Simplify linking/building objects in subdirectories
	o drivers/pnp/pnpbios_core.c: Warning fix
	o kbuild: Fix command line printing
	o kbuild: Fix warning when .version doesn't exist yet
	o kbuild: Rearrange Rules.make
	o kbuild: Consistent use of [AC]FLAGS_KERNEL and MODFLAGS
	o EXPORT_SYMBOL: Remove EXPORT_NO_SYMBOLS from arch/*
	o EXPORT_SYMBOL: Remove EXPORT_NO_SYMBOLS from drivers/*
	o EXPORT_SYMBOL: Remove the option of implicitly exporting symbols
	o EXPORT_SYMBOL: Remove EXPORT_NO_SYMBOLS from fs/*
	o EXPORT_SYMBOL: Remove EXPORT_NO_SYMBOLS from net/*
	o EXPORT_SYMBOL: Remove EXPORT_NO_SYMBOLS from sound/*
	o kbuild: Use standard multi-part object declaration in drivers/char/*
	o ISDN: Fix compiler warnings
	o kbuild: Use standard multi-part object declaration in drivers/video/*
	o kbuild: Small cleanups
	o ISDN: Use 'built-in.o' instead of 'vmlinux-obj.o' as O_TARGET
	o ISDN: Move AVM Config.help entries to right dir
	o kbuild: Assorted small cleanups
	o Fix dummy gameport_{,un}register_port
	o Compiler warning fixes
	o kbuild: Clean up sound/*/Makefile
	o Add missing includes
	o kbuild: Remove now redundant 'O_TARGET := built-in.o' lines
	o kbuild: Make O_TARGET default to 'built-in.o'
	o kbuild: Beautify ACPI Makefiles
	o kbuild: Remove usage of L_TARGET in drivers/*
	o kbuild: Correct dependencies for generated soundmodem tables
	o kbuild: Use standard multi-part object declaration in lib/*
	o kbuild: Simplify linking subdirs in drivers/*/Makefile
	o kbuild: Use standard multi-part object declaration in fs/*
	o kbuild: Use standard multi-part object declaration in net/*
	o kbuild: Fix some issues I missed before

<kuznet@ms2.inr.ac.ru>
	o tcp_input.c: Really make sure rto = 3*rtt, found by Pasi Sarolahti
	o tcp_recvmsg: Fix application bug induced races with MSG_PEEK and copied_seq.

<mason@suse.com>
	o reiserfs 64 bit bug in get_virtual_node_size

<mikpe@csd.uu.se>
	o possible fix for broken floppy driver, take 2

<pavel@ucw.cz>
	o suspend-to-{RAM,disk} fixup
	o suspend-to-{RAM,disk}
	o more suspend-to-{RAM,disk} fixes
	o One more fix for swsusp
	o swsusp cleanups
	o swsusp: making myself maintainer
	o swsusp fixes

<petkan@mastika.lnxw.com>
	o USB pegasus driver, new vendor and device id.

<rmk@flint.arm.linux.org.uk>
	o [ARM] 2.5.15 PCI cleanups/fixups
	o [ARM] 2.5.15 random fixups:
	o [ARM] Make etherh.c build again - combine struct ei_device inside our
	o [ARM] Fix build errors caused by fb changes
	o [ARM] Fixups for GCC 3.x:
	o [ARM] Miscellaneous
	o [ARM] Remove old NetWinder uncompressed kernel image compatibility code.
	o [ARM] Acorn DMA/Expansion card fixups
	o [ARM] Make Acorn SCSI drivers build again.

<rml@tech9.net>
	o remove preempt_disable from pdflush
	o get/put_cpu methods

<rusty@rustcorp.com.au>
	o Tasklet cleanup
	o Futex update.
	o DMA-mapping.txt typo fix
	o printk() cleanup in ide-pnp.c
	o drivers/net/epic100.c: missing __devinit
	o drivers_net_sundance.c: missing __devinit
	o declance.c
	o Remove warning in fs/nfs/nfsroot.c
	o Fix order of #includes in init_version.c
	o check_region elimination
	o serial typo
	o MIPS min/max replacement
	o MIPS min/max replacement II
	o min/max elimination in netfilter.h
	o cris signal fix
	o sigio delivery fix
	o check_region elimination
	o MIPS/MIPS64  signal fix
	o jiffies.h
	o arch/arm/kernel/via82c505.c
	o smp_call_function doco fix
	o check_region elimination
	o check_region elimination

<shaggy@austin.ibm.com>
	o jfs_readdir does not need to grab BKL
	o JFS external journal support

<simonb@lipsyncpost.co.uk>
	o Tigon3: Add Netgear GA320T support.

<torvalds@transmeta.com>
	o Make the pte unmapping atomic wrt other threads.
	o Fix over-eager header file cleanup
	o Merge DRI CVS tree into standard kernel
	o Fix up more headers to make the drm merge compile more cleanly
	o Undo block devices changes from floppy fix: incorrect.
	o Update kernel version
	o Move check_pgt_cache() to tlb_finish_mmu().
	o Make sw-suspend compile even without ACPI sleep support.
	o Clean up tlb_start/end_vma.
	o Fix up header file

Alexander Viro <viro@math.psu.edu>
	o add proper ->getattr()
	o remove s390 procfs abuses
	o kill ->i_op->revalidate()
	o clean up readdir() for in-memory
	o new helpers for /proc
	o rd.c blocksize handling
	o removal of BKL from d_move()
	o md.c cleanup
	o kdev_t -> bdev cleanups

<zippel@linux-m68k.org>
	o m68k mmu update



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

end of thread, other threads:[~2002-05-31  8:32 UTC | newest]

Thread overview: 41+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-05-30  0:19 [PATCH] 2.5.18 IDE 73 Andries.Brouwer
2002-05-30 13:02 ` Martin Dalecki
2002-05-30 15:32   ` Alan Cox
2002-05-30 13:54     ` Martin Dalecki
2002-05-30 15:05       ` Tomas Szepe
2002-05-30 15:13       ` Rene Rebe
2002-05-30 15:39       ` Wichert Akkerman
2002-05-30 16:13       ` Alan Cox
2002-05-30 14:20         ` Martin Dalecki
2002-05-30 15:31           ` Linus Torvalds
2002-05-30 18:55             ` Martin Dalecki
2002-05-30 15:25         ` Linus Torvalds
  -- strict thread matches above, loose matches on Subject: below --
2002-05-30 15:56 Andries.Brouwer
2002-05-30 14:43 Andries.Brouwer
2002-05-30 14:01 ` Martin Dalecki
2002-05-30 15:09   ` Rene Rebe
2002-05-31 13:25     ` Denis Vlasenko
2002-05-30 12:35 Bartlomiej Zolnierkiewicz
2002-05-29 23:40 Andries.Brouwer
2002-05-29 22:53 ` Martin Dalecki
2002-05-29 18:16 Andries.Brouwer
2002-05-29 18:07 Andries.Brouwer
2002-05-29 21:57 ` Martin Dalecki
2002-05-29 13:59 Gerald Champagne
2002-05-29 13:03 ` Martin Dalecki
2002-05-29 14:26   ` Gerald Champagne
2002-05-29 14:35   ` Russell King
2002-05-29 13:40     ` Martin Dalecki
2002-05-29 16:33   ` Vojtech Pavlik
2002-05-29 15:46     ` Martin Dalecki
2002-05-29 18:47       ` Alan Cox
2002-05-30  8:48         ` David Woodhouse
2002-05-30 12:22           ` Martin Dalecki
2002-05-29 17:55     ` Alan Cox
2002-05-29 17:01       ` Vojtech Pavlik
2002-05-29 16:05         ` Martin Dalecki
2002-05-29 17:05           ` Vojtech Pavlik
2002-05-29 18:43         ` Alan Cox
2002-05-25  2:02 Linux-2.5.18 Linus Torvalds
2002-05-29 12:11 ` [PATCH] 2.5.18 IDE 73 Martin Dalecki
2002-05-29 12:58   ` Zwane Mwaikambo
2002-05-29 12:52     ` Martin Dalecki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox