Skip to content

Commit 95f72f9

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 03354ea commit 95f72f9

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
@@ -41,6 +41,7 @@ static struct trace_key trace_fscache = TRACE_KEY_INIT(FSCACHE);
4141
struct fsentry {
4242
struct hashmap_entry ent;
4343
mode_t st_mode;
44+
ULONG reparse_tag;
4445
/* Length of name. */
4546
unsigned short len;
4647
/*
@@ -180,6 +181,10 @@ static struct fsentry *fseentry_create_entry(struct fscache *cache, struct fsent
180181

181182
fse = fsentry_alloc(cache, list, buf, len);
182183

184+
fse->reparse_tag =
185+
fdata->FileAttributes & FILE_ATTRIBUTE_REPARSE_POINT ?
186+
fdata->EaSize : 0;
187+
183188
fse->st_mode = file_attr_to_st_mode(fdata->FileAttributes);
184189
fse->u.s.st_size = fdata->EndOfFile.LowPart | (((off_t)fdata->EndOfFile.HighPart) << 32);
185190
filetime_to_timespec((FILETIME *)&(fdata->LastAccessTime), &(fse->u.s.st_atim));

0 commit comments

Comments
 (0)