Re: remove-single-device removes mounted HDDs (kernel 2.6)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Aug 11, 2005 at 04:32:51PM +0200, Harald Seipp wrote:
> James Bottomley wrote on 11.08.2005 15:59:27:
> > On Thu, 2005-08-11 at 12:09 +0200, Harald Seipp wrote:
> > > I assume this is a bug? How can I prevent that behavior? Can I easily
> query
> > > if a device on "h b t l" is mounted to work-around?
> >
> > No, it's expected behaviour.  The mount keeps a reference to the old
> > device node so it can't be reused.
> Ok - but shouldn't the behavior that devices that have mounted partitions
> can be removed be considered as a bug?
> Linux 2.4 SCSI Subsystem Howto, proc interface: "....The removal will fail
> if the device is busy (e.g. if a file system on the device is mounted)."

The trouble is that users can surprise-remove drives (eg USB memory) and
there's nothing we can do about it.  So the SCSI subsystem is designed
to cope as best it can with such a scenario rather than trying to forbid
in software an action that already took place in hardware.

-- 
"Next the statesmen will invent cheap lies, putting the blame upon 
the nation that is attacked, and every man will be glad of those
conscience-soothing falsities, and will diligently study them, and refuse
to examine any refutations of them; and thus he will by and by convince 
himself that the war is just, and will thank God for the better sleep 
he enjoys after this process of grotesque self-deception." -- Mark Twain
-
: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux