Samba keeps drive "busy" even after unsharing

Bug #235143 reported by Martin Rehn
2
Affects Status Importance Assigned to Milestone
samba (Ubuntu)
Won't Fix
Low
Unassigned

Bug Description

Binary package hint: samba

To reproduce:

1) Mount a removable drive
2) Share a directory on the drive using Samba
3) Access this through Samba, using another machine
4) Remove (unshare) the Samba share
5) Try to unmount ("safely remove") the drive

Result: At step 5) the drive is reported as busy and is not unmounted.
Expected result: The drive is unmounted.

6) Restart Samba: /etc/init.d/samba restart
7) Unmounting the drive now succeeds

Revision history for this message
Mathias Gug (mathiaz) wrote : Re: [Bug 235143] [NEW] Samba keeps drive "busy" even after unsharing

On Tue, May 27, 2008 at 05:22:50AM -0000, Martin Rehn wrote:
> 1) Mount a removable drive
> 2) Share a directory on the drive using Samba
> 3) Access this through Samba, using another machine
> 4) Remove (unshare) the Samba share
> 5) Try to unmount ("safely remove") the drive
>
> Result: At step 5) the drive is reported as busy and is not unmounted.
> Expected result: The drive is unmounted.
>
> 6) Restart Samba: /etc/init.d/samba restart
> 7) Unmounting the drive now succeeds

When a share is undefined, samba doesn't automatically kill existing
connections to the share. This is why the removable drive is busy and
cannot be unmounted.

I'm not sure if it's a good idea to kill existing connections to a share
as it could lead to data loss.

 status confirmed
 importance low

--
Mathias Gug
Ubuntu Developer http://www.ubuntu.com

Changed in samba:
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
Chuck Short (zulcss) wrote :

This is something we are not going to fix though.

chuck

Changed in samba (Ubuntu):
status: Confirmed → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.