Displaying 3 results from an estimated 3 matches for "af8bfd4".
2014 Jan 09
1
Re: RFC: copy-attributes command
On Tuesday 07 January 2014 21:04:36 Richard W.M. Jones wrote:
> On Tue, Jan 07, 2014 at 04:06:43PM +0100, Pino Toscano wrote:
> > diff --git a/daemon/xattr.c b/daemon/xattr.c
> > index af8bfd4..97a94d5 100644
> > --- a/daemon/xattr.c
> > +++ b/daemon/xattr.c
> > @@ -545,8 +545,98 @@ do_lgetxattr (const char *path, const char
> > *name, size_t *size_r)>
> > return buf; /* caller frees */
> >
> > }
> >
> > +int
> > +cop...
2014 Jan 07
0
Re: RFC: copy-attributes command
..., dest);
> + return -1;
> + }
> + }
> +
> + if (xattributes && optgroup_linuxxattrs_available ()) {
> + if (!copy_xattrs (src, dest))
> + return -1;
> + }
> +
> + return 0;
> +}
> diff --git a/daemon/xattr.c b/daemon/xattr.c
> index af8bfd4..97a94d5 100644
> --- a/daemon/xattr.c
> +++ b/daemon/xattr.c
> @@ -545,8 +545,98 @@ do_lgetxattr (const char *path, const char *name, size_t *size_r)
> return buf; /* caller frees */
> }
>
> +int
> +copy_xattrs (const char *src, const char *dest)
> +{
> +#if def...
2014 Jan 07
8
RFC: copy-attributes command
Hi,
attached there is a prototype of patch for adding a new copy-attributes
command. Such command would allow copy the attributes of a "file" to
another, so for example in guestfish:
copy-attributes foo bar permissions:true xattributes:false
would only copy the permissions of foo to bar, not copying its extended
attributes too.
Just few notes:
- my first daemon command, so