[PATCH 2/2] FAT: Fix msdos ->[ac]{date,time}

From: OGAWA Hirofumi
Date: Mon Mar 21 2005 - 13:22:37 EST


MSDOS doesn't have ->adate and ->c{date,time}, those should be filled
by zero.

This fixes my recent changes.

Signed-off-by: OGAWA Hirofumi <hirofumi@xxxxxxxxxxxxxxxxxx>
---

fs/msdos/namei.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)

diff -puN fs/msdos/namei.c~fat_msdos-zeroed-adate fs/msdos/namei.c
--- linux-2.6.12-rc1/fs/msdos/namei.c~fat_msdos-zeroed-adate 2005-03-20 02:59:21.000000000 +0900
+++ linux-2.6.12-rc1-hirofumi/fs/msdos/namei.c 2005-03-20 02:59:21.000000000 +0900
@@ -266,9 +266,11 @@ static int msdos_add_entry(struct inode
de.attr |= ATTR_HIDDEN;
de.lcase = 0;
fat_date_unix2dos(ts->tv_sec, &time, &date);
- de.time = de.ctime = time;
- de.date = de.cdate = de.adate = date;
+ de.cdate = de.adate = 0;
+ de.ctime = 0;
de.ctime_cs = 0;
+ de.time = time;
+ de.date = date;
de.start = cpu_to_le16(cluster);
de.starthi = cpu_to_le16(cluster >> 16);
de.size = 0;
_
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/