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

Otavio Salvador otavio at debian.org
Thu Feb 19 16:48:04 UTC 2009

Joel Granados Moreno <jgranado at redhat.com> writes:

>     modified:   libparted/arch/linux.c:  When we look for stuff in
>     /proc/mounts, /proc/swaps and /etc/mtab, there is a possibility to
>     receive none path elements.  Like "none" or "tmpfs".  We are making
>     a system call for each of these strings when it can be easily
>     avoided.  This is most noticeable in situations that heavily use
>     libparted, like the fedora installer.



        O T A V I O    S A L V A D O R
 E-mail: otavio at debian.org      UIN: 5906116
 GNU/Linux User: 239058     GPG ID: 49A5F855
 Home Page: http://otavio.ossystems.com.br
"Microsoft sells you Windows ... Linux gives
 you the whole house."

More information about the parted-devel mailing list