diff options
author | Andrew Tridgell <tridge@samba.org> | 2004-11-05 07:29:02 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:05:30 -0500 |
commit | 9fe5fa11d637252f1fbe79c7baf778e2d3cdade2 (patch) | |
tree | 40f628c02dcc23d3ec4724e43cb9a6fcdeb5c548 /source4/ntvfs/posix/pvfs_resolve.c | |
parent | 0a8dff9e475aea5312ecc4bc283e8007ee653185 (diff) | |
download | samba-9fe5fa11d637252f1fbe79c7baf778e2d3cdade2.tar.gz samba-9fe5fa11d637252f1fbe79c7baf778e2d3cdade2.tar.bz2 samba-9fe5fa11d637252f1fbe79c7baf778e2d3cdade2.zip |
r3545: initial support for using extended attributes to hold extended dos attributes of files.
I decided to use IDL/NDR to encode the attribute, as it gives us a
simple way to describe and extend the saved attributes.
The xattr code needs to hook into quite a few more places in the pvfs
code, but this at least gets the basics done. I will start encoding
alternate data streams streams, DOS EAs etc soon using the same basic
mechanism.
I'll probably stick to "version 1" for the xattr.idl for quite a while
even though it will be changing, as I don't expect anyone to be
deploying this in production just yet. Once we have production users
we will need to keep compatibility by supporting all the old version
numbers in xattr.idl.
(This used to be commit c54253ed1b7dce1d14f43e747da61089aea87094)
Diffstat (limited to 'source4/ntvfs/posix/pvfs_resolve.c')
-rw-r--r-- | source4/ntvfs/posix/pvfs_resolve.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source4/ntvfs/posix/pvfs_resolve.c b/source4/ntvfs/posix/pvfs_resolve.c index 551b05b248..30602b964a 100644 --- a/source4/ntvfs/posix/pvfs_resolve.c +++ b/source4/ntvfs/posix/pvfs_resolve.c @@ -27,7 +27,7 @@ */ -#include "include/includes.h" +#include "includes.h" #include "vfs_posix.h" #include "system/dir.h" @@ -175,7 +175,7 @@ static NTSTATUS pvfs_case_search(struct pvfs_state *pvfs, struct pvfs_filename * name->full_name = partial_name; if (name->exists) { - return pvfs_fill_dos_info(pvfs, name); + return pvfs_fill_dos_info(pvfs, name, -1); } return NT_STATUS_OK; @@ -446,7 +446,7 @@ NTSTATUS pvfs_resolve_name(struct pvfs_state *pvfs, TALLOC_CTX *mem_ctx, /* if we can stat() the full name now then we are done */ if (stat((*name)->full_name, &(*name)->st) == 0) { (*name)->exists = True; - return pvfs_fill_dos_info(pvfs, *name); + return pvfs_fill_dos_info(pvfs, *name, -1); } /* search for a matching filename */ @@ -489,7 +489,7 @@ NTSTATUS pvfs_resolve_partial(struct pvfs_state *pvfs, TALLOC_CTX *mem_ctx, (*name)->original_name = talloc_strdup(*name, fname); (*name)->stream_name = NULL; - status = pvfs_fill_dos_info(pvfs, *name); + status = pvfs_fill_dos_info(pvfs, *name, -1); return status; } @@ -534,5 +534,5 @@ NTSTATUS pvfs_resolve_name_fd(struct pvfs_state *pvfs, int fd, name->exists = True; - return pvfs_fill_dos_info(pvfs, name); + return pvfs_fill_dos_info(pvfs, name, fd); } |