Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support extended file attributes via SFTP. #271

Merged
merged 50 commits into from Apr 22, 2016
Merged

Support extended file attributes via SFTP. #271

merged 50 commits into from Apr 22, 2016

Conversation

Castaglia
Copy link
Member

@Castaglia Castaglia commented Apr 21, 2016

Addresses #241 .

unimplemented getxattrs extended request, for now.
… adding

two new SFTPOptions for ignoring xattrs on SETSTAT and OPEN requests, mirroring
the existing options for ownership/permissions.
…O API,

where they should be.  This involves adding a --disable-xattr configure option,
expanding the FSIO API and its unit tests, and refactoring the mod_sftp use
of those calls.
… platforms,

this is where the ENODATA/ENOATTR errno values are defined.  Sigh.
…void

issues (one defines the setxattr flag values using an enum, the other uses
macros; what a mess).
…e value;

this causes build failures with some picky/strict compiler flags.
…which

rippled through the entire API.  Almost ready.
to contain all of the xattrs for a file.  This required some refactoring,
to allow for possible resizing of the READDIR response buffer.
…ys/xattr.h>

is used, not where <sys/extattr.h> is used (i.e. BSDs).
…ed to

link, not just compile, to perfectly detect their presence.  Silly compilers.
…INK and

READDIR requests, though, a set of attribute flags had to be assumed, as
those requests do not have a flags field defined.
ATTR_EXTENDED, as some clients (e.g. lftp) choke on those in FXP_NAMEs in a
READDIR response.
…y need

to make sure that if no xattrs are found, we still include the xattr count
(i.e. of zero).
…ersion,

rather than just for protocol version 4 and higher; they are defined for
protocol version 3 as well.
match.  Make sure those new SFTPOptions are documented.
…ation

file by the pr_fs_copy_file() function.
@Castaglia Castaglia self-assigned this Apr 21, 2016
@Castaglia Castaglia merged commit 99ee549 into master Apr 22, 2016
@Castaglia Castaglia deleted the sftp-xattrs branch April 22, 2016 00:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant