From: Adrian M. <zx8...@us...> - 2002-11-03 19:30:22
|
Update of /cvsroot/linuxdc/linux-sh-dc/fs/vmufs In directory usw-pr-cvs1:/tmp/cvs-serv26210/fs/vmufs Modified Files: Tag: linux-sh-dc-2_4-branch inode.c super.c Log Message: VMU fs tidy up continues Index: inode.c =================================================================== RCS file: /cvsroot/linuxdc/linux-sh-dc/fs/vmufs/Attic/inode.c,v retrieving revision 1.1.2.8 retrieving revision 1.1.2.9 diff -u -d -r1.1.2.8 -r1.1.2.9 --- inode.c 3 Nov 2002 09:09:01 -0000 1.1.2.8 +++ inode.c 3 Nov 2002 19:30:18 -0000 1.1.2.9 @@ -48,10 +48,8 @@ ((__u8 *) bh->b_data)[1 + fno * 0x20]; saved_file->fblk = ((__u16 *) bh->b_data)[1 + fno * 0x10]; memcpy(saved_file->fname, bh->b_data + 4 + fno * 0x20, 12); - for (i = 0; i < 8; i++) { - saved_file->date[i] = - int_from_bcd(((__u8 *) bh->b_data)[i + 16 + fno * 0x20]); - } + + fno++; } while (1); Index: super.c =================================================================== RCS file: /cvsroot/linuxdc/linux-sh-dc/fs/vmufs/Attic/super.c,v retrieving revision 1.1.2.6 retrieving revision 1.1.2.7 diff -u -d -r1.1.2.6 -r1.1.2.7 --- super.c 3 Nov 2002 09:09:01 -0000 1.1.2.6 +++ super.c 3 Nov 2002 19:30:18 -0000 1.1.2.7 @@ -61,7 +61,7 @@ minute = int_from_bcd((bh->b_data)[0x35]); second = int_from_bcd((bh->b_data)[0x36]); - in->i_mode |= S_IFDIR; + in->i_mode = S_IFDIR; in->i_atime = CURRENT_TIME; in->i_ctime = in->i_mtime = @@ -76,7 +76,6 @@ /*Not in FAT table */ in->i_size = 512; - /* Times */ in->i_blocks = 1; in->i_blksize = 512; in->i_version = ++event; @@ -92,7 +91,7 @@ } /* a file, not a directory */ - in->i_mode |= S_IFREG; + in->i_mode = S_IFREG; /* Scan through the directory to find the matching file */ for (y = 0; y < 200; y++) { |