OpenSolaris

Printable Version Enter a New Search
Bug ID 6537472
Synopsis If zfs unmount fails it leaves the file system unshared.
State 10-Fix Delivered (Fix available in build)
Category:Subcategory utility:zfs
Keywords
Responsible Engineer Thomas Haynes
Reported Against snv_60
Duplicate Of
Introduced In solaris_nevada
Commit to Fix snv_66
Fixed In snv_66
Release Fixed solaris_nevada(snv_66) , solaris_10u6(s10u6_01) (Bug ID:2156335)
Related Bugs 6509628 , 6561021
Submit Date 22-March-2007
Last Update Date 29-April-2008
Description
If zfs umount fails it leaves the file system unshared.

# zfs create examples/share
# share | grep  examples/share
-               /examples/share   rw   ""  
# cd /examples/share
# zfs umount examples/share
cannot unmount '/examples/share': Device busy
# share | grep  examples/share
# 

This is not what the user expects, especially as the workaround for 6509628 requires a unmount to fail.
Ben grabbed some truss output:
"
I just threw in a truss in the SMF script and rebooted the test system and it failed again.
The truss output is at http://www.eecis.udel.edu/~bmiller/zfs.truss-Apr27-2007

thanks,
Ben
"
Work Around
Use this script to unmount 

#!/bin/ksh -p
zfs unmount $1 || [[ $(zfs get -Ho value sharenfs $1) == "off" ]] || zfs share $1
Comments
N/A