set new inode's xattr version to 1 even if it has no xattr. This allow
client to differentiate no xattr in inode from MDS skips sending xattr
to client (because MDS think client already has uptodate xattr).
Signed-off-by: Yan, Zheng <zyan@redhat.com>
CInode *in = new CInode(this);
in->inode.ino = ino;
in->inode.version = 1;
+ in->inode.xattr_version = 1;
in->inode.mode = 0500 | mode;
in->inode.size = 0;
in->inode.ctime =
}
in->inode.version = 1;
+ in->inode.xattr_version = 1;
in->inode.nlink = 1; // FIXME
in->inode.mode = mode;