Re: [PATCH v2] swapon: Canonicalize swap device

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

 



On Wed, Dec 15, 2010 at 02:14:18AM +0300, Alexey Gladkov wrote:
> Signed-off-by: Alexey Gladkov <gladkov.alexey@xxxxxxxxx>
> Tested-by: Petr Uzel <petr.uzel@xxxxxxx>
> ---
>  mount/swapon.c |   13 +++++++++++--
>  1 files changed, 11 insertions(+), 2 deletions(-)

 Thanks, applied with a small change.

>  static int
>  is_in_proc_swaps(const char *fname) {
>  	int i;
> +	char *p = canonicalize_path(fname);

 this is unnecessary, the is_in_proc_swaps() function is always called
 for already canonicalized devnames.

    Karel

-- 
 Karel Zak  <kzak@xxxxxxxxxx>
 http://karelzak.blogspot.com
--
To unsubscribe from this list: send the line "unsubscribe util-linux" 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