Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 342783 - net-fs/mount-cifs-3.0.30: umount.cifs does not remove entry from /etc/mtab when using relative path to mountpoint
Summary: net-fs/mount-cifs-3.0.30: umount.cifs does not remove entry from /etc/mtab wh...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: PPC Linux
: High minor (vote)
Assignee: Gentoo's SAMBA Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-26 16:25 UTC by Jesús A. Álvarez
Modified: 2012-09-16 12:29 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jesús A. Álvarez 2010-10-26 16:25:21 UTC
umount.cifs (net-fs/mount-cifs-3.0.30) does not remove entry from /etc/mtab when using relative path to mountpoint, although the share is unmounted correctly, and it doesn't show up in /proc/mounts

Reproducible: Always

Steps to Reproduce:
1. Mount a cifs sharepoint
2. Unmount with umount.cifs <relative path to mountpoint>

Compare /etc/mtab and /proc/mounts

Actual Results:  
The share is unmounted correctly, but the entry is not removed from /etc/mtab. Subsequently mounting and unmounting the share in the same way will add another line to mtab that won't be removed.

Expected Results:  
The entry should have been removed from /etc/mtab, since the share has been correctly unmounted (the mountpoint is now empty, and it doesn't show on /proc/mounts)

Unmounting with umount.cifs <absolute pathname> or umount <relative or absolute pathname> works correctly, but only removes one line from mtab. If any line has been left there by umount.cifs <relative pathname>, it must be removed manually.

Portage 2.1.8.3 (default/linux/powerpc/ppc32/10.0/server, gcc-4.1.2, glibc-2.11.2-r0, 2.6.36-gentoo ppc)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.36-gentoo-ppc-7447A,_altivec_supported-with-gentoo-1.12.13
Timestamp of tree: Sat, 23 Oct 2010 03:45:01 +0000
app-shells/bash:     4.1_p7
dev-lang/python:     2.4.4-r13, 2.5.4-r3, 2.6.5-r3, 3.1.2-r4
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    2.3-r1
sys-devel/autoconf:  2.65-r1
sys-devel/automake:  1.4_p6, 1.6.3, 1.9.6-r2, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.1.2, 4.3.4, 4.4.3-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="ppc"
ACCEPT_LICENSE="* -@EULA"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-mcpu=7400 -O2 -pipe -maltivec -mabi=altivec"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-mcpu=7400 -O2 -pipe -maltivec -mabi=altivec"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://mirror.ovh.net/gentoo-distfiles/ ftp://ftp.free.fr/mirrors/ftp.gentoo.org/ http://gentoo.tiscali.nl/ ftp://ftp.udc.es/gentoo/ "
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="acl avahi berkdb bzip2 cdr cgi cli cracklib crypt ctype cups curl curlwrappers cvs cxx dbus exif fastcgi fax ftp gd gdbm gmp gnutls hash hfs iconv ieee1394 innodb javascript jpeg jpeg2k json libgcrypt libnotify mdnsresponder-compat mhash mime modules mudflap mysql mysqli ncurses nls nowebdav nptl nptlonly objc objc++ objc-gc openssl pam pcre pdo perl php png posix ppc python readline ruby session simplexml sockets sqlite ssl sysfs tcpd threads tls truetype unicode vnc xml xmlreader xmlrpc xmlwriter zeroconf zip zlib" ALSA_CARDS="aoa aoa-fabric-layout aoa-onyx aoa-soundbus aoa-soundbus-i2s aoa-tas aoa-toonie powermac usb-audio via82xx" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-2" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint mach64 mga nv r128 radeon savage tdfx trident voodoo" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

=================================================================
                        Package Settings
=================================================================

net-fs/mount-cifs-3.0.30 was built with the following:
USE=""
Comment 1 Pacho Ramos gentoo-dev 2012-09-16 12:29:48 UTC
dropped