first draft of named attributes

This commit is contained in:
Olga Kornievskaia 2011-09-22 14:56:11 -04:00
parent 1c5935865b
commit 6eea9faa2e
11 changed files with 572 additions and 89 deletions

View file

@ -507,6 +507,10 @@ int nfs41_open(
if (compound_error(status = compound.res.status))
goto out;
if (dir_info.type == NF4ATTRDIR)
goto out;
/* fill in the file handle's fileid and superblock */
file->fh.fileid = info->fileid;
status = nfs41_superblock_for_fh(session, &info->fsid, &parent->fh, file);
@ -761,6 +765,10 @@ int nfs41_write(
eprintf("WRITE succeeded with count=0; returning %s\n",
nfs_error_string(status));
}
if (info.type == NF4NAMEDATTR)
goto out;
nfs41_superblock_space_changed(file->fh.superblock);
out:
return status;