lkml.org 
[lkml]   [2005]   [Mar]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject[PATCH 2/2] FAT: Fix msdos ->[ac]{date,time}
From
Date
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@mail.parknet.co.jp>
---

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@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 14:11    [W:0.021 / U:0.096 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site