On Wednesday 26 January 2011 02:01:38 Alan Brown wrote: > On 24/01/11 19:27, Kern Sibbald wrote: > >> In particular: does Bacula lock the drive while writing/despooling is > >> taking place and then unlock immediately it's finished? > > > > No, if I remember right once the tape is mounted, Bacula locks it. It is > > unlocked only when Bacula releases the drive. > > This is done using a "Prevent Media Removal" call?
The locking and unlocking is done via an ioctl(MTIOCTOP) call with MTLOCK and MTUNLOCK. What the kernel does exactly, I do not know. > > There have been several threads in the last few years about being unable > to remove tapes on various hardware due to PMR being set. > > When it is unset, is the tape drive status checked to verify the command > actually worked? No. > > Alan Regards, Kern ------------------------------------------------------------------------------ Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d _______________________________________________ Bacula-devel mailing list Bacula-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-devel