Re: [libvirt] [PATCH] Use XDG Base Directories instead of storing in home directory

2012-05-03 Thread Daniel P. Berrange
On Wed, May 02, 2012 at 01:53:36PM -0400, William Jon McCann wrote: +static int migrateProfile(void) +{ +char *old_base = NULL; +char *updated = NULL; +char *home = NULL; +char *xdg_dir = NULL; +char *config_dir = NULL; +const char *config_home; +int ret = -1;

Re: [libvirt] [PATCH] Use XDG Base Directories instead of storing in home directory

2012-05-02 Thread Daniel P. Berrange
On Tue, May 01, 2012 at 09:50:31AM -0400, William Jon McCann wrote: +static int migrateProfile(void) +{ +char *old_base = NULL; +char *updated = NULL; +char *home = NULL; +char *xdg_dir = NULL; +char *config_dir = NULL; +int ret = -1; +mode_t old_umask; + +

Re: [libvirt] [PATCH] Use XDG Base Directories instead of storing in home directory

2012-05-02 Thread William Jon McCann
On Wed, May 2, 2012 at 11:30 AM, Daniel P. Berrange berra...@redhat.com wrote: On Tue, May 01, 2012 at 09:50:31AM -0400, William Jon McCann wrote: +static int migrateProfile(void) +{ +    char *old_base = NULL; +    char *updated = NULL; +    char *home = NULL; +    char *xdg_dir = NULL; +

[libvirt] [PATCH] Use XDG Base Directories instead of storing in home directory

2012-05-02 Thread William Jon McCann
As defined in: http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html This offers a number of advantages: * Allows sharing a home directory between different machines, or sessions (eg. using NFS) * Cleanly separates cache, runtime (eg. sockets), or app data from user settings *

Re: [libvirt] [PATCH] Use XDG Base Directories instead of storing in home directory

2012-05-02 Thread Eric Blake
On 05/02/2012 11:53 AM, William Jon McCann wrote: As defined in: http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html If I'm not mistaken, this is v3? When using git send-mail, you can use --subject-prefix=PATCHv3 to make it more obvious to reviewers. This offers a number

Re: [libvirt] [PATCH] Use XDG Base Directories instead of storing in home directory

2012-05-02 Thread Zeeshan Ali (Khattak)
On Wed, May 2, 2012 at 9:02 PM, Eric Blake ebl...@redhat.com wrote: On 05/02/2012 11:53 AM, William Jon McCann wrote: As defined in: http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html If I'm not mistaken, this is v3?  When using git send-mail, you can use

Re: [libvirt] [PATCH] Use XDG Base Directories instead of storing in home directory

2012-05-02 Thread Eric Blake
On 05/02/2012 12:13 PM, Zeeshan Ali (Khattak) wrote: On Wed, May 2, 2012 at 9:02 PM, Eric Blake ebl...@redhat.com wrote: On 05/02/2012 11:53 AM, William Jon McCann wrote: As defined in: http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html If I'm not mistaken, this is v3?

[libvirt] [PATCH] Use XDG Base Directories instead of storing in home directory

2012-05-01 Thread William Jon McCann
--- daemon/libvirtd-config.c | 10 +-- daemon/libvirtd.c | 110 +++--- daemon/libvirtd.pod.in |2 +- docs/auth.html.in |2 +- docs/uri.html.in |2 +- src/libvirt.c |4 +-

[libvirt] [PATCH] Use XDG Base Directories instead of storing in home directory

2012-05-01 Thread William Jon McCann
As defined in: http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html This offers a number of advantages: * Allows sharing a home directory between different machines, or sessions (eg. using NFS) * Cleanly separates cache, runtime (eg. sockets), or app data from user settings *

Re: [libvirt] [PATCH] Use XDG Base Directories instead of storing in home directory

2012-05-01 Thread William Jon McCann
Sorry for the noise. Please disregard. Apparently I don't know how to use git-email. On Tue, May 1, 2012 at 9:39 AM, William Jon McCann william.jon.mcc...@gmail.com wrote: ---  daemon/libvirtd-config.c       |   10 +--  daemon/libvirtd.c              |  110 +++---