Samba keeps drive "busy" even after unsharing
Bug #235143 reported by
Martin Rehn
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
To post a comment you must log in.
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
-- www.ubuntu. com
Mathias Gug
Ubuntu Developer http://