diff options
Diffstat (limited to 'win32/statfs.c')
-rw-r--r-- | win32/statfs.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/win32/statfs.c b/win32/statfs.c index d81a69380..22fc591ec 100644 --- a/win32/statfs.c +++ b/win32/statfs.c | |||
@@ -51,7 +51,7 @@ int statfs(const char *file, struct statfs *buf) | |||
51 | 51 | ||
52 | /* | 52 | /* |
53 | * Valid filesystem names don't seem to be documented. The following | 53 | * Valid filesystem names don't seem to be documented. The following |
54 | * are present in Wine. | 54 | * are present in Wine (dlls/kernel32/volume.c). |
55 | */ | 55 | */ |
56 | if ( strcmp(fsname, "NTFS") == 0 ) { | 56 | if ( strcmp(fsname, "NTFS") == 0 ) { |
57 | buf->f_type = 0x5346544e; | 57 | buf->f_type = 0x5346544e; |
@@ -62,6 +62,9 @@ int statfs(const char *file, struct statfs *buf) | |||
62 | else if ( strcmp(fsname, "CDFS") == 0 ) { | 62 | else if ( strcmp(fsname, "CDFS") == 0 ) { |
63 | buf->f_type = 0x9660; | 63 | buf->f_type = 0x9660; |
64 | } | 64 | } |
65 | else if ( strcmp(fsname, "UDF") == 0 ) { | ||
66 | buf->f_type = 0x15013346; | ||
67 | } | ||
65 | else { | 68 | else { |
66 | buf->f_type = 0; | 69 | buf->f_type = 0; |
67 | } | 70 | } |
@@ -70,10 +73,10 @@ int statfs(const char *file, struct statfs *buf) | |||
70 | buf->f_blocks = total_number_of_bytes / buf->f_bsize; | 73 | buf->f_blocks = total_number_of_bytes / buf->f_bsize; |
71 | buf->f_bfree = total_number_of_free_bytes / buf->f_bsize; | 74 | buf->f_bfree = total_number_of_free_bytes / buf->f_bsize; |
72 | buf->f_bavail = free_bytes_available / buf->f_bsize; | 75 | buf->f_bavail = free_bytes_available / buf->f_bsize; |
73 | buf->f_files = UINT32_MAX; | 76 | buf->f_files = 0; |
74 | buf->f_ffree = UINT32_MAX; | 77 | buf->f_ffree = 0; |
75 | buf->f_fsid = serial; | 78 | buf->f_fsid = serial; |
76 | buf->f_flag = UINT64_MAX; | 79 | buf->f_flag = 0; |
77 | buf->f_namelen = namelen; | 80 | buf->f_namelen = namelen; |
78 | 81 | ||
79 | return 0; | 82 | return 0; |