Commit 7b631e7
committed
mds: generate symlink inode with correct mode
Fix test instance generation for InodeStoreBare and InodeStore to
properly set the mode field to S_IFLNK for symlink inodes.
Previously, generated test instances with symlink inodes had unset
mode fields, creating inconsistent data. This issue was masked because
ceph-dencoder reused existing instances during encode/decode consistency
tests, leaving stale values intact.
The problem would surface when check-generated.sh and readable.sh
allocate fresh instances for decoding tests, as the missing mode field
would cause decode/encode inconsistencies.
This change fixes generate_test_instances() to set the mode field to
S_IFLNK for symlink inodes, creating valid InodeStore and InodeStoreBare
instances with consistent field values for proper encode/decode testing.
Signed-off-by: Kefu Chai <[email protected]>1 parent d28e5fe commit 7b631e7
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4768 | 4768 | | |
4769 | 4769 | | |
4770 | 4770 | | |
| 4771 | + | |
4771 | 4772 | | |
4772 | 4773 | | |
4773 | 4774 | | |
| |||
4776 | 4777 | | |
4777 | 4778 | | |
4778 | 4779 | | |
| 4780 | + | |
4779 | 4781 | | |
4780 | 4782 | | |
4781 | 4783 | | |
| |||
0 commit comments