OSDN Git Service

Pass struct exfat to exfat_stat().
authorresver <resver@60bc1c72-a15a-11de-b98f-4500b42dc123>
Sun, 20 Dec 2009 15:31:29 +0000 (15:31 +0000)
committerresver <resver@60bc1c72-a15a-11de-b98f-4500b42dc123>
Sun, 20 Dec 2009 15:31:29 +0000 (15:31 +0000)
git-svn-id: http://exfat.googlecode.com/svn/trunk@81 60bc1c72-a15a-11de-b98f-4500b42dc123

fuse/main.c
libexfat/exfat.h
libexfat/utils.c

index 652fc04..290c787 100644 (file)
@@ -44,7 +44,7 @@ static int fuse_exfat_getattr(const char* path, struct stat* stbuf)
        if (rc != 0)
                return rc;
 
-       exfat_stat(node, stbuf);
+       exfat_stat(&ef, node, stbuf);
        exfat_put_node(&ef, node);
        return 0;
 }
index 9dcb5d7..16fef81 100644 (file)
@@ -110,7 +110,8 @@ cluster_t exfat_advance_cluster(const struct exfat* ef,
 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);
index 413abcc..3181a44 100644 (file)
@@ -12,7 +12,8 @@
 #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)