Merge pull request #11841 from hjwsm1989/filestore

os/filestore: avoid to get the wrong hardlink number.

Reviewed-by: Loic Dachary <ldachary@redhat.com>
This commit is contained in:
Kefu Chai 2016-11-25 23:05:29 +08:00 committed by GitHub
commit 8a19d185f2

View File

@ -782,8 +782,9 @@ int LFNIndex::lfn_get_name(const vector<string> &path,
*hardlink = 0;
else
return -errno;
}
*hardlink = st.st_nlink;
} else {
*hardlink = st.st_nlink;
}
}
return 0;
}