Your message dated Fri, 01 Nov 2013 10:32:14 -0400 with message-id <[email protected]> and subject line mount: swapon -a -e does not silently skip devices that do not exist. has caused the Debian Bug report #470808, regarding mount: swapon -a -e does not silently skip devices that do not exist. to be marked as done.
This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact [email protected] immediately.) -- 470808: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=470808 Debian Bug Tracking System Contact [email protected] with problems
--- Begin Message ---Package: mount Version: 2.13.1-2 Severity: minor Tags: patch In swapon man page, you can read the following statement : "-e When -a is used with swapon, -e makes swapon silently skip devices that do not exist." But in fact, if swapon encounters a non existant device, it outputs a little error message : -8<-- $ sudo bash -c 'echo "/dev/foo none swap sw 0 0" >> /etc/fstab' $ sudo swapon -a -e swapon: cannot canonicalize /dev/foo: No such file or directory -8<-- It can be fixed with the following patch : -8<-- ~/src/debian/util-linux-2.13.1$ diff -PruN mount/swapon.c.orig mount/swapon.c --- mount/swapon.c.orig 2008-03-10 22:36:04.000000000 +0100 +++ mount/swapon.c 2008-03-10 22:37:16.000000000 +0100 @@ -125,8 +125,11 @@ char canonical[PATH_MAX + 2]; if (!myrealpath(fname, canonical, PATH_MAX + 1)) { - fprintf(stderr, _("%s: cannot canonicalize %s: %s\n"), - progname, fname, strerror(errno)); + /* stays quiet if told to be so */ + if (!ifexists) { + fprintf(stderr, _("%s: cannot canonicalize %s: %s\n"), + progname, fname, strerror(errno)); + } strncpy(canonical, fname, PATH_MAX + 1); *(canonical + (PATH_MAX + 1)) = '\0'; } -8<-- -- System Information: Debian Release: lenny/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: amd64 (x86_64) Kernel: Linux 2.6.24-1-amd64 (SMP w/2 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages mount depends on: ii libblkid1 1.40.7-1 block device id library ii libc6 2.7-9 GNU C Library: Shared libraries ii libselinux1 2.0.35-1 SELinux shared libraries ii libuuid1 1.40.7-1 universally unique id library mount recommends no packages. -- Arthur Petitpierre <[email protected]>
--- End Message ---
--- Begin Message --------BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Version: 2.20.1-5 Looks like this was fixed upstream a while back. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (MingW32) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBAgAGBQJSc7tuAAoJEJrBOlT6nu75s2IIALHAeesZ5JUML4TvthVEsOyJ Y7E2BGDLX1p/yDnD8fZIhjV1zYq3vdoNtsy8WgfSYzPghxBcYAwsWIEpDLrmCWRr 6HOphVN+RqBZHY6ernwFHWsU/Id+dKoPV9DBh3WKGX1oMhRzhruiROuMbnmsufdi 0HqWXDEnDFwAJIMpb/ADMElVWgZVTzCqSd70mu3hvSJ0Hdfl116Lg9Kt8B+Bq3bn 25FhT9qd/Bn1+aSSfwSZ+DPlPw28MfC+seHBEJcPfn4/XmS4ZOK5uYKhGeNmvNal 0fxQgunXOJeEGBJVVxOZbUwSNJ8TK3OkvOz/I5oCt3UWh5RN/cCQTFVJYDktm/w= =cy/2 -----END PGP SIGNATURE-----
--- End Message ---

