Re: NTFS partition tried to mount as reiserfs | |
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] | |
On Tuesday 08 January 2008, Karel Zak wrote:
> On Tue, Jan 08, 2008 at 12:37:16AM -0500, Mike Frysinger wrote:
> > Karel: perhaps we should include this information in the output of
> > `mount --version` ?
>
> Good idea, what about:
>
> ./mount --version
> mount from util-linux-ng 2.14 (with libblkid and selinux support)
>
>
> diff --git a/mount/mount.c b/mount/mount.c
> index 0688c57..41fe71d 100644
> --- a/mount/mount.c
> +++ b/mount/mount.c
> @@ -1819,6 +1819,22 @@ getfs(const char *spec, const char *uuid, const char
> *label) return mc;
> }
>
> +
> +static void
> +print_version(int rc) {
> + printf( "mount from %s (with "
> +#ifdef HAVE_LIBBLKID
> + "libblkid"
> +#else
> + "libvolume_id"
> +#endif
> +#ifdef HAVE_LIBSELINUX
> + " and selinux"
> +#endif
> + " support)\n", PACKAGE_STRING);
> + exit(rc);
> +}
looks good to me, thanks
-mike
Attachment:
signature.asc
Description: This is a digitally signed message part.
[Site Home] [Netdev] [Ethernet Bridging] [Linux Wireless] [Kernel Newbies] [Memory] [Security] [Linux for Hams] [Netfilter] [Bugtraq] [Rubini] [Photo] [Yosemite] [Yosemite News] [MIPS Linux] [ARM Linux] [Linux RAID] [Linux Admin] [Samba] [Video 4 Linux] [Linux Resources]