Commit 984dd82
Fix: unable to perform sync on directory
when no_open=false, no_opendir=true, we can't execute the sync
command on the directory, because fsyncdir uses get_data to get
the handle of the directory, but no_open=false, so it will go to
the handle map to find it, but in fact this is a directory, and
the no_opendir is true, so it is not in the handle map, It needs
to be reopened. we should use get_dirdata replace get_data
Signed-off-by: tianqian.zyf <tianqian.zyf@alibaba-inc.com>1 parent ebdadfa commit 984dd82
2 files changed
+31
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
1074 | 1074 | | |
1075 | 1075 | | |
1076 | 1076 | | |
1077 | | - | |
1078 | | - | |
1079 | | - | |
1080 | | - | |
1081 | | - | |
1082 | | - | |
1083 | | - | |
1084 | | - | |
1085 | | - | |
1086 | | - | |
1087 | | - | |
1088 | | - | |
1089 | | - | |
1090 | | - | |
| 1077 | + | |
1091 | 1078 | | |
1092 | 1079 | | |
1093 | 1080 | | |
1094 | 1081 | | |
1095 | | - | |
| 1082 | + | |
1096 | 1083 | | |
1097 | 1084 | | |
1098 | 1085 | | |
1099 | 1086 | | |
1100 | | - | |
| 1087 | + | |
| 1088 | + | |
| 1089 | + | |
1101 | 1090 | | |
1102 | 1091 | | |
1103 | 1092 | | |
| |||
1630 | 1619 | | |
1631 | 1620 | | |
1632 | 1621 | | |
| 1622 | + | |
| 1623 | + | |
| 1624 | + | |
| 1625 | + | |
| 1626 | + | |
| 1627 | + | |
| 1628 | + | |
| 1629 | + | |
| 1630 | + | |
1633 | 1631 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
225 | 225 | | |
226 | 226 | | |
227 | 227 | | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
228 | 244 | | |
229 | 245 | | |
230 | 246 | | |
| |||
0 commit comments