close
目前kernel 2.6.x 好像還不支援 exFAT
只好上網查一下

wiki
http://zh.wikipedia.org/zh-hant/ExFAT


google project
http://code.google.com/p/exfat/
--> 不知怎麼弄 ,它用 scon 去 make ??


大家都在討論的 patch , 第一個掛了, 第二個OK
http://userweb.kernel.org/~hirofumi/exfat/exfat.tar.gz
http://www.munted.org.uk/programming/exfat.tar.bz2
--> 2.6.31 可以work , 2.6.21 不行, 因為 kmem_cache_create function 版本不合



同場加映 有人放上 2.6.36 的 patch
this patch makes the exFAT driver compatible with Linux 2.6.36.

-Tobias

diff -urN a/exfat/exfat.h b/exfat/exfat.h
--- a/exfat/exfat.h 2009-02-08 00:21:25.000000000 +0100
+++ b/exfat/exfat.h 2010-11-23 16:16:28.000000000 +0100
@@ -8,6 +8,7 @@

#include
#include
+#include
#include "exfat_fs.h"

/* FIXME: remove this */
diff -urN a/exfat/super.c b/exfat/super.c
--- a/exfat/super.c 2009-02-08 00:20:52.000000000 +0100
+++ b/exfat/super.c 2010-12-08 13:41:51.000000000 +0100
@@ -58,8 +58,11 @@
kmem_cache_free(exfat_inode_cachep, EXFAT_I(inode));
}

-static void exfat_clear_inode(struct inode *inode)
+static void exfat_evict_inode(struct inode *inode)
{
+ truncate_inode_pages(&inode->i_data, 0);
+ invalidate_inode_buffers(inode);
+ end_writeback(inode);
exfat_cache_inval(inode);
exfat_detach(inode);
}
@@ -268,8 +271,7 @@
.alloc_inode = exfat_alloc_inode,
.destroy_inode = exfat_destroy_inode,
// .write_inode = ext4_write_inode,
-// .delete_inode = ext4_delete_inode,
- .clear_inode = exfat_clear_inode,
+ .evict_inode = exfat_evict_inode,
.put_super = exfat_put_super,
// .write_super = ext4_write_super,
.statfs = exfat_statfs,
arrow
arrow
    文章標籤
    linux
    全站熱搜

    jchuang1977 發表在 痞客邦 留言(0) 人氣()