Re: Screw Linux, I'm going back to Windows!

From: Kasper Dupont (kasperd@daimi.au.dk)
Date: 09/14/02


From: Kasper Dupont <kasperd@daimi.au.dk>
Date: Sat, 14 Sep 2002 00:49:06 +0200

Fredderic wrote:
>
> Another type is the CD that does it the same as most car CD's, using neither
> caddy nor tray. Also not very common, but they do exist.

Yes, I didn't know that also existed on computers. My brother
had a player with this kind of loader, it didn't work too well.

>
> But in most cases, autoeject would be nice. I've lost count of the number
> of times I've needed to start up the computer just to eject a CD.

I think most of us has experienced that too many times.

>
> Urgh. I've always hated that under Windoze... I *DO* hope Gnome lets you
> disable that bad habit.

I think so, but I don't remember how.

>
> > With no CD in the drive, I have seen the following happen:
> > - Every 10 minutes, cron calls rmmod -a.
> > - The module unloader decides the CD driver is no longer
> > needed, and unloads it.
> > - 10 seconds later gnome probes for a CD.
> > - The kernel doesn't have a driver for the device and
> > thus executes the module loader.
> > - The module loader loads the module.
> > - A message from the driver pops up on the screen.
>
> Gnome's probing of the drive doesn't count as module usage? I'd have
> thought that as long as Gnome's probing interval was less than the modules
> unused timeout, it wouldn't happen.

Have been thinking the same too. It does behave the way
I explained, I don't understand why.

>
> > But we need some kernel support. A virtual block device,
> > that can be bound to physical devices on command, might be
> > what we need. It should be possible to disasociate the
> > physical device from the block device even when it is
> > mounted, in that case our userspace application should be
> > notified if any process needs to access the drive.
>
> How about a symlinik? I'd think that simply having a directory containing
> symlinks associating the drive's label and/or serial number to the physical
> drive, would do.

That wouldn't work. Following the link is done at mount time,
not at every block access which is what we need.

> If it's made and broken by the mount process, it should be
> pretty reliable.

We need it to be changed even during the time the filesystem
stays mounted.

> Even a virtual block device would need to be created and
> deleted as appropriate.

Yes.

> Unless you did something similar to the automounter.

That is actually what I had in mind.

> And even then, making it appear as a symlink should work just
> fine,

No.

> with the added bonus of making it easy to determine the hardware
> device we're referring to.

Perhaps we can achieve that some other way.

>
> > We also need automatic remounting between readonly and
> > readwrite. The remounting from readwrite to readonly can
> > be done periodically every second, though help from the
> > kernel would be slightly more efficient. But the other
> > way is needed on demand. Of course this feature must be
> > optional, we still want to be able to make a usual ro
> > mount.
>
> Indeed. Though if we're going to jump between readonly and readwrite all
> the time (which would requre kernel support), may as well just make a hybrid
> writeback mode -- someone suggested "semi-sync", or being a C programmer, I
> suggested "volatile".

You are right. That makes sense. The ability of actually
being able to do something in userspace during the
transition could come in handy. But having the kernel
automatically finish writings is cleaner than trying to
enforce it by remounting readonly. Still the changing of
the dirty flag in the superblock at start/end of writes
is a part of the feature. (Yes AmigaOS does that.)

> Regardless of name, the concept is simply to write
> all the apropriate metadata to "close" the filesystem right after all
> avaliable data writes have been completed.

Yes.

> Presumably should new data
> become avaliable for writing before the closure is completed, the new data
> would be written immediately and the process of closing the filesystem
> simply restarted right after.

Yes, that is more or less how it should work. The needed
operations at start and end of writes are cheap, but not
free. Doing it for every single block would be too
expensive. We need to take advantage of a filesystem
staying busy.

>
> It would, though, be advantageous for the system to be able to detect disk
> insertion and removal, otherwise it would be neccesary for the driver to
> verify that the correct disk was still in the drive before comencing a
> write. Things could get ugly otherwise.

Yes.

-- 
Kasper Dupont -- der bruger for meget tid på usenet.
For sending spam use mailto:aaarep@daimi.au.dk
or mailto:mcxumhvenwblvtl@skrammel.yaboo.dk



Relevant Pages

  • Re: Dynamically loading binaries in Kernel mode.
    ... all he needs is something that pretends to be a filesystem with 1 constant file in 1 constant directory and can serve it up. ... But remember that not only does it have to be able to do the loading, but if it doesn't properly integrate into the rest of the kernel image handling it could very easily cause problems resulting in impossible to debug bluescreens. ... Anyway, unless the place you're going to load it from is reachable via a standard filesystem and unless you load it using standard export driver mechanisms and interfaces, you're going to end up having to rewrite the entire DLL loader by yourself. ...
    (microsoft.public.development.device.drivers)
  • Re: silent semantic changes with reiser4
    ... they solved the problem by having the filesystem ... > driver itself take a text query string and parse it, ... > the kernel (let alone in the filesystem driver) has always seemed ugly ...
    (Linux-Kernel)
  • Re: [SLE] 9.3 slow downs :( - /var/log/messages
    ... Jul 17 04:20:49 P-733 kernel: Kernel log daemon terminating. ... Jul 17 09:40:44 P-733 kernel: usbcore: registered new driver usbfs ... block device /block/ram2 ...
    (SuSE)
  • Re: ext3fs errors with kernel 2.6.18 but not with 2.4.27
    ... My hunch was that the 2.6.x IDE driver is handling ... Perhaps his 2.6.x kernel is using the new 'merged' ... On 2.4.27, I get the CRC errors (not at boot time, later, and all the ... On 2.6.x, at boot time, errors are reported on the initial filesystem ...
    (Debian-User)
  • Re: Dynamically loading binaries in Kernel mode.
    ... Right now only the kernel will load ... Windows 2k/XP/2k3 Filesystem and Driver Consulting ...
    (microsoft.public.development.device.drivers)