set REPARSE_POINT attr only if symlink_support attr is set

This commit is contained in:
unknown 2010-11-02 14:21:06 -04:00
parent 9c84f71623
commit db1c02cc28
3 changed files with 9 additions and 3 deletions

View file

@ -96,7 +96,7 @@ static int handle_volume_attributes(
/* query the case_ attributes of the root filesystem */
nfs41_file_info info = { 0 };
bitmap4 attr_request = { 1, { FATTR4_WORD0_CASE_INSENSITIVE |
FATTR4_WORD0_CASE_PRESERVING } };
FATTR4_WORD0_CASE_PRESERVING | FATTR4_WORD0_SYMLINK_SUPPORT} };
PFILE_FS_ATTRIBUTE_INFORMATION attr = &args->info.attribute;
int status = NO_ERROR;
@ -108,8 +108,9 @@ static int handle_volume_attributes(
goto out;
}
attr->FileSystemAttributes = FILE_SUPPORTS_REMOTE_STORAGE |
FILE_SUPPORTS_REPARSE_POINTS;
attr->FileSystemAttributes = FILE_SUPPORTS_REMOTE_STORAGE;
if (info.symlink_support)
attr->FileSystemAttributes |= FILE_SUPPORTS_REPARSE_POINTS;
if (info.case_preserving)
attr->FileSystemAttributes |= FILE_CASE_PRESERVED_NAMES;
if (!info.case_insensitive)