mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 2/2] FAT: Fix msdos ->[ac]{date,time}
@ 2005-03-21 18:19 OGAWA Hirofumi
  0 siblings, 0 replies; only message in thread
From: OGAWA Hirofumi @ 2005-03-21 18:19 UTC (permalink / raw)
  To: Linus Torvalds, Andrew Morton; +Cc: linux-kernel

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;
_

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-03-21 18:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-21 18:19 [PATCH 2/2] FAT: Fix msdos ->[ac]{date,time} OGAWA Hirofumi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®