Skip to contentSkip to conversation

fat_access cleanup (4/11)

PATCH New OGAWA Hirofumi 1 participant 1 message Jul 21, 2003 VFAT/FAT/msdos filesystem

lore
Share & tools
lore

OGAWA Hirofumi

author maintainer
#0 lore raw

PATCH 1/1 fat_access cleanup (4/11)

This removes dirty raw_scan_*(), and rewrites fat_scan() and fat_subdirs() by useing fat_get_entry() instead.

 fs/fat/inode.c |    1 
 fs/fat/misc.c  |  247 +++++++++------------------------------------------------
 2 files changed, 40 insertions(+), 208 deletions(-)
fs/fat/inode.c renamed from fs/fat/inode.c~fat_access-cleanup1 +1 -0
diff -puN fs/fat/inode.c~fat_access-cleanup1 fs/fat/inode.c
@@ -501,6 +501,7 @@ static int fat_read_root(struct inode *i
 	struct msdos_sb_info *sbi = MSDOS_SB(sb);
 	int error;
 
+	MSDOS_I(inode)->file_cluster = MSDOS_I(inode)->disk_cluster = 0;
 	MSDOS_I(inode)->i_pos = 0;
 	inode->i_uid = sbi->options.fs_uid;
 	inode->i_gid = sbi->options.fs_gid;
fs/fat/misc.c renamed from fs/fat/misc.c~fat_access-cleanup1 +39 -208

269 lines not on this page · raw message

_

Signature · 1 line
OGAWA Hirofumi <[email protected]>