if (rc != 0)
return rc;
- exfat_stat(node, stbuf);
+ exfat_stat(&ef, node, stbuf);
exfat_put_node(&ef, node);
return 0;
}
void exfat_flush_cmap(struct exfat* ef);
int exfat_truncate(struct exfat* ef, struct exfat_node* node, uint64_t size);
-void exfat_stat(const struct exfat_node* node, struct stat *stbuf);
+void exfat_stat(const struct exfat* ef, const struct exfat_node* node,
+ struct stat* stbuf);
time_t exfat_exfat2unix(le16_t date, le16_t time);
void exfat_unix2exfat(time_t unix_time, le16_t* date, le16_t* time);
void exfat_get_name(const struct exfat_node* node, char* buffer, size_t n);
#define _XOPEN_SOURCE /* for timezone in Linux */
#include <time.h>
-void exfat_stat(const struct exfat_node* node, struct stat *stbuf)
+void exfat_stat(const struct exfat* ef, const struct exfat_node* node,
+ struct stat* stbuf)
{
memset(stbuf, 0, sizeof(struct stat));
if (node->flags & EXFAT_ATTRIB_DIR)