[parted-devel] [PATCH] Dont try to stat stuff that we know does not exist.

Karel Zak kzak at redhat.com
Thu Feb 19 18:09:16 UTC 2009


On Thu, Feb 19, 2009 at 06:14:26PM +0100, Jim Meyering wrote:
> Joel Granados Moreno <jgranado at redhat.com> writes:
> >     modified:   libparted/arch/linux.c:  When we look for stuff in
> 
> Thanks!
> 
> Please follow ChangeLog conventions, and use "*", not "modified:"
> and include parenthesized (function_names):
> 
> * libparted/arch/linux.c (_mount_table_search): When we look for
>   directory names...
> 
> >     /proc/mounts, /proc/swaps and /etc/mtab, there is a possibility to
> >     receive none path elements.  Like "none" or "tmpfs".  We are making
> 
> Actually, a file named "none" or "tmpfs" *could* exist
> in the working directory, so this is a fix, not just an optimization.

 What about:

     //servername/path /mountpoint cifs options

 the "//servername/path" could be also interpreted as a path ;-)

    Karel

-- 
 Karel Zak  <kzak at redhat.com>



More information about the parted-devel mailing list