netmount use <mount -at $fs> to mount network filesystem (note: in fact, it mount anything, but others filesystem should be already mount) but if the nfs server is down, unreachable, dnsserver down while using fqn in nfs mount command... The script just try to mount all nfs mount, and user is now dead, waiting every mounts to timeout. So i wish it to be changed to <mount -atF $fs> so i would get all timeout more or less at the same time, cutting down the wait by mount-1*timeout seconds Also because, some users might complain about using aF to mount nfs maybe just add a new /etc/conf.d/netmount where i could put the option to allow the <F> usage. And everyone will be happy. Next query is kinda related, i wish <umount -at $fs> changed to <umount -atl $fs> I don't think an option is even needed for that, it "should" be safe as long as kernel>2.4.11 This will also help cases like this one https://bugs.gentoo.org/show_bug.cgi?id=219823 Reproducible: Always
lack of info in this bug report, so i'm just going to assume you're using baselayout-1 here openrc already adds timeouts/retries/etc... to netmount. no plans to address this in baselayout-1. we arent going to unmount things lazily as the kernel doesnt provide any notification that i'm aware of to userspace as to when things actually finished unmounting (i.e. syncing).
no i'm using baselayout-2 and openrc, here's my emerge --info (at end) Can you point me to doc about openrc to set a lower timeout value because in my netmount script i only see netmout trying to mount the fs by doing "mount -at $fs" and i don't know where the mount command pickup the timeout value. emerge --info Portage 2.1.9.24 (default/linux/x86/10.0/desktop, gcc-4.4.3, glibc-2.11.2-r3, 2.6.36-rc6 i686) ================================================================= System uname: Linux-2.6.36-rc6-i686-Intel-R-_Core-TM-_i7_CPU_950_@_3.07GHz-with-gentoo-2.0.1 Timestamp of tree: Thu, 04 Nov 2010 03:30:22 +0000 distcc 3.1 i686-pc-linux-gnu [enabled] app-shells/bash: 4.1_p9 dev-java/java-config: 2.1.11-r1 dev-lang/python: 2.6.6-r1, 3.1.2-r4 dev-util/cmake: 2.8.1-r2 sys-apps/baselayout: 2.0.1-r1 sys-apps/openrc: 0.6.3 sys-apps/sandbox: 2.3-r1 sys-devel/autoconf: 2.13, 2.68 sys-devel/automake: 1.9.6-r3, 1.10.3, 1.11.1 sys-devel/binutils: 2.20.1-r1 sys-devel/gcc: 4.4.3-r2 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.10 sys-devel/make: 3.82 virtual/os-headers: 2.6.35 (sys-kernel/linux-headers) ACCEPT_KEYWORDS="x86 ~x86" ACCEPT_LICENSE="*" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=core2 -O2 -pipe -mfpmath=sse" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/config /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-march=core2 -O2 -pipe -mfpmath=sse" DISTDIR="/mnt/faramir/distfiles" EMERGE_DEFAULT_OPTS="--keep-going -j8" FEATURES="assume-digests binpkg-logs buildpkg distcc fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch" GENTOO_MIRRORS="ftp://ftp.free.fr/mirrors/ftp.gentoo.org ftp://mirror.ovh.net/gentoo-distfiles http://gentoo.mirror.sdv.fr/ http://gentoo.oregonstate.edu/ http://www.ibiblio.org/pub/Linux/distributions/gentoo" LANG="fr_FR.UTF-8" LDFLAGS="-Wl,-Ol -Wl,--as-needed" LINGUAS="fr fr_FR" MAKEOPTS="-j8" 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" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://faramir/gentoo-portage" USE="X a52 aac aalib acl acpi alsa amarok audacious bluetooth branding bzip2 cairo cdr cli consolekit cracklib crypt cxx dbase dbus device-mapper divx dri dts dvd dvdr dvdread embedded emboss encode exif extras fam fbsplash ffmpeg firefox flac fortran ftp gdbm gdu gif glitz gmedia gnome gnutls gstreamer gtk hddtemp iconv icu imap ipod java javascript jpeg jpeg2k lame lcms ldap libcaca libnotify live lm_sensors logrotate lzo mad maildir matroska mdnsresponder-compat midi mikmod mjpeg mng modplug modules moznomail moznoxft mp3 mp4 mp4live mpeg mpeg2 mplayer msn mudflap musepack ncurses network nfs nls nptl nptlonly ntfs ogg openal opengl openmp pam pango pcre pdf perl png policykit ppds pppd python qt3support readline sdl sdl-image sensord session skins slang smp spell ssl startup-notification stream subtitles svg sysfs tcpd tga theora threads thunderbird tiff timidity truetype udev unicode usb v4l v4l2 vcd vdpau vlm vorbis webkit wma wmf wxwindows x264 x86 xcb xcomposite xine xinerama xml xorg xosd xulrunner xv xvid zip zlib" ALSA_CARDS="intel8x0" 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="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="fr fr_FR" PHP_TARGETS="php5-2" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="vesa nvidia" 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, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS