lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:	Sun, 27 Feb 2011 18:27:23 +0100
From:	Tobias Karnat <tobias.karnat@...glemail.com>
To:	"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: Fat64 / exFat fs and Linux

Hi,

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 <linux/fs.h>
 #include <linux/nls.h>
+#include <linux/slab.h>
 #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,

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ