Skip to content

Commit 2332abe

Browse files
committed
fscache: remember the reparse tag for each entry
We will use this in the next commit to implement an FSCache-aware version of is_mount_point(). Signed-off-by: Johannes Schindelin <[email protected]>
1 parent b10dc64 commit 2332abe

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

compat/win32/fscache.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ static struct trace_key trace_fscache = TRACE_KEY_INIT(FSCACHE);
4343
struct fsentry {
4444
struct hashmap_entry ent;
4545
mode_t st_mode;
46+
ULONG reparse_tag;
4647
/* Pointer to the directory listing, or NULL for the listing itself. */
4748
struct fsentry *list;
4849
/* Pointer to the next file entry of the list. */
@@ -194,6 +195,10 @@ static struct fsentry *fseentry_create_entry(struct fscache *cache,
194195

195196
fse = fsentry_alloc(cache, list, buf, len);
196197

198+
fse->reparse_tag =
199+
fdata->FileAttributes & FILE_ATTRIBUTE_REPARSE_POINT ?
200+
fdata->EaSize : 0;
201+
197202
fse->st_mode = file_attr_to_st_mode(fdata->FileAttributes);
198203
fse->dirent.d_type = S_ISDIR(fse->st_mode) ? DT_DIR : DT_REG;
199204
fse->u.s.st_size = fdata->EndOfFile.LowPart |

0 commit comments

Comments
 (0)