From: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
To: Linus Torvalds <torvalds@osdl.org>, Andrew Morton <akpm@osdl.org>
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH 2/2] FAT: Fix msdos ->[ac]{date,time}
Date: Tue, 22 Mar 2005 03:19:08 +0900 [thread overview]
Message-ID: <87is3k276r.fsf@devron.myhome.or.jp> (raw)
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;
_
reply other threads:[~2005-03-21 18:19 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87is3k276r.fsf@devron.myhome.or.jp \
--to=hirofumi@mail.parknet.co.jp \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@osdl.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®