diff options
author | Andrew Tridgell <tridge@samba.org> | 2008-05-28 11:49:43 +1000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2008-05-28 11:49:43 +1000 |
commit | fd67526bd304dd9391b0014886dd2748aa392721 (patch) | |
tree | 1ab29292e9b0a6dfe461c9d3d51adab3248bcae8 | |
parent | bbcbada5e446147eec986e016a29520ce039299f (diff) | |
download | samba-fd67526bd304dd9391b0014886dd2748aa392721.tar.gz samba-fd67526bd304dd9391b0014886dd2748aa392721.tar.bz2 samba-fd67526bd304dd9391b0014886dd2748aa392721.zip |
answer SMB2_ALL_EAS qfileinfo
(This used to be commit f5cf47eef18a5728317de97eab961d948db3f031)
-rw-r--r-- | source4/ntvfs/posix/pvfs_qfileinfo.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source4/ntvfs/posix/pvfs_qfileinfo.c b/source4/ntvfs/posix/pvfs_qfileinfo.c index 6e3092b744..c663466985 100644 --- a/source4/ntvfs/posix/pvfs_qfileinfo.c +++ b/source4/ntvfs/posix/pvfs_qfileinfo.c @@ -178,6 +178,15 @@ static NTSTATUS pvfs_map_fileinfo(struct pvfs_state *pvfs, case RAW_FILEINFO_ALL_EAS: return pvfs_query_all_eas(pvfs, req, name, fd, &info->all_eas.out); + case RAW_FILEINFO_SMB2_ALL_EAS: { + NTSTATUS status = pvfs_query_all_eas(pvfs, req, name, fd, &info->all_eas.out); + if (NT_STATUS_IS_OK(status) && + info->all_eas.out.num_eas == 0) { + return NT_STATUS_NO_EAS_ON_FILE; + } + return status; + } + case RAW_FILEINFO_IS_NAME_VALID: return NT_STATUS_OK; |