Date: Fri, 28 Aug 2015 03:43:41 +0200 From: Polytropon <freebsd@edvax.de> To: Quartz <quartz@sneakertech.com> Cc: freebsd-questions@freebsd.org Subject: Re: Stop using a SATA drive Message-ID: <20150828034341.bb01cc81.freebsd@edvax.de> In-Reply-To: <55DFB16E.4090804@sneakertech.com> References: <CAPi0psvT5aaHR7kU%2B28qwVDdutyMn7LjhFUGZRWctz4gGfgvgw@mail.gmail.com> <20150824214252.53aa04c6.freebsd@edvax.de> <55DEF869.1010202@sneakertech.com> <20150828000118.31f33a35.freebsd@edvax.de> <55DFA213.4030304@sneakertech.com> <20150828020029.c3c53813.freebsd@edvax.de> <55DFAB0B.7020307@sneakertech.com> <20150828024643.c0d5d2dd.freebsd@edvax.de> <55DFB16E.4090804@sneakertech.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 27 Aug 2015 20:55:10 -0400, Quartz wrote: > >>> This is possible. > >> > >> OK, well my question (via Chris' original question) was, is there > >> currently a port or package that actually implements this? > > > > Not that I am aware of. Maybe some specific (vendor-supplied) > > control software for disk controllers ("RAID controllers") > > can do this? > > Hmm... ok. Not that I have any plans for this, but just out of > curiosity, how easy do you think it would be to write one? I'm sure this is possible. Such a tool would first have to make sure that all requests to a device (let's say a disk) would have been processed ("sync" and "umount" equivalents at driver level), issue CAM commands to the device to "say goodbye", and then talk to devfs to manipulate the device file system. When a rescan of the bus is requested, the device should probably re-appear. At least that's how I would imagine such a process. Note that I'm not a BSD system programmer, so my experience and knowledge on this topic is limited. > > There was also a menu entry: "eject floppy disk", and additionally > > a keyboard shortcut. > > Well... sorta. Even that was messed up. If you used command-E ("Eject") > you got the stupid ghost icon. You had to use command-Y ("Put Away") > which didn't really make a lot of sense. But as I said, Apple's mental > model for disconnecting disks has always been weird. Yes, I remember the somewhat strange choice of terminology in the german version of Mac OS: "Diskette weglegen". I think Apple thought of "put away" as sync+umount, and "eject" as actual eject. Luckily, you usually could't "force-remove" the disk with read or write operations pending. :-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20150828034341.bb01cc81.freebsd>