• E
    util: new virFileRelLinkPointsTo function · 91f349d8
    Eric Blake 提交于
    When checking if two filenames point to the same inode (whether
    by hardlink or symlink), sometimes one of the names might be
    relative.  This convenience function makes it easier to check.
    
    * src/util/virfile.h (virFileRelLinkPointsTo): New prototype.
    * src/util/virfile.c (virFileRelLinkPointsTo): New function.
    * src/libvirt_private.syms (virfile.h): Export it.
    * src/xen/xm_internal.c (xenXMDomainGetAutostart): Use it.
    Signed-off-by: NEric Blake <eblake@redhat.com>
    91f349d8
virfile.c 72.2 KB