Skip to content

Commit 9884643

Browse files
authored
Merge pull request ceph#63937 from tchaikov/wip-mds-inode-valid-test-instances
mds: generate symlink inode with correct mode Reviewed-by: Patrick Donnelly <[email protected]>
2 parents 548e252 + 7b631e7 commit 9884643

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/mds/CInode.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4768,6 +4768,7 @@ void InodeStore::generate_test_instances(std::list<InodeStore*> &ls)
47684768
{
47694769
InodeStore *populated = new InodeStore;
47704770
populated->get_inode()->ino = 0xdeadbeef;
4771+
populated->get_inode()->mode = S_IFLNK | 0777;
47714772
populated->symlink = "rhubarb";
47724773
ls.push_back(populated);
47734774
}
@@ -4776,6 +4777,7 @@ void InodeStoreBare::generate_test_instances(std::list<InodeStoreBare*> &ls)
47764777
{
47774778
InodeStoreBare *populated = new InodeStoreBare;
47784779
populated->get_inode()->ino = 0xdeadbeef;
4780+
populated->get_inode()->mode = S_IFLNK | 0777;
47794781
populated->symlink = "rhubarb";
47804782
ls.push_back(populated);
47814783
}

0 commit comments

Comments
 (0)