Subject: Re: Drive Numbering...
To: Peter Galbavy <peter@wonderland.org>
From: Open Carefully -- Contents Under Pressure <greywolf@defender.VAS.viewlogic.com>
List: current-users
Date: 11/20/1995 09:45:03
#define AUTHOR "peter@wonderland.org (Peter Galbavy)"
/*
* Agreed with both of you. Why not do something else. Check the last mounted
* directory, and if it is different to where things are now, then bomb out,
* as if "fsck -p" had failed, and let the user deal with it. This, of course,
* should be optional, since some people hate machines not rebooting cleanly
* by themselves. But would you want it to boot cleanly if one of the drives
* had gone ?
*
* Maybe this:
*
* # mount /dev/sd4g /disk12
* /dev/sd4g last mounted on /disk11
* Remount on disk12 ? Are you sure ? y
* #
*
* Or use the -f flag otherwise...
* # mount -f /dev/sd4g /disk12
I thought the '-f' flag meant "fake an mtab entry", i.e. don't actually
mount it, but put an mtab entry in as though it had been mounted?
[ I should probably check the source/manpage for this; it's probably changed]
Neat idea, though.
* #
*
* etc etc.
*
* One area that would be fun is installation. Maybe a flag to "umount" that
* say where the disk *will* be mounted next:
*
* # umount -r /usr /a/usr
* /dev/sdXX will be valid as /usr next mount
* #
That would be cute.
*
* Now whatI realy want is what SunOS ODS doesn't do, but I am told that AIX
* and IRIX do, which is to uniquely label components of a ccd so that they
* can be "accidentally" renumbered (read: moved onto another SCSI bus) and
* don't get errored or, worse, trashed.
This would be VERY beneficial, although the CCD driver should probably
check individual disk header checksums or some such in order to handle
this.
*
* Regards,
* --
* Peter Galbavy peter@wonderland.org
* @ Home phone://44/973/499465
* in Wonderland http://www.wonderland.org/~peter/
* snail://UK/NW1_6LE/London/21_Harewood_Avenue/
*
*/
#undef AUTHOR /* "peter@wonderland.org (Peter Galbavy)" */
--*greywolf;
--
/* To any would-be censors: */
static unsigned long msg[5]={1198465094,1430473504,017133672562,
~2358940569,(554322252-044514)};main(){write(1,msg,sizeof(msg));}