Re: [patch] mount add move option

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Jul 24, 2008 at 04:17:23PM +0200, maximilian attems wrote:
> -	while ((c = getopt_long (argc, argv, "afFhilL:no:O:p:rsU:vVwt:",
> +	while ((c = getopt_long (argc, argv, "aBfFhilL:Mno:O:p:rRsU:vVwt:",
>  				 longopts, NULL)) != -1) {
>  		switch (c) {
>  		case 'a':	       /* mount everything in fstab */
>  			++mount_all;
>  			break;
> +		case 'B': /* bind */
> +			mounttype = MS_BIND;
> +			break;

 Maximilian, the longopts struct is not for decoration. It's the
 place where you can define short options too...

	{ "bind", 0, 0,  'B' },
	{ "move", 0, 0,  'M' },
	{ "rbind", 0, 0, 'R' },


    Karel


-- 
 Karel Zak  <kzak@xxxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux