mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
To: Linus Torvalds <torvalds@transmeta.com>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>, linux-kernel@vger.kernel.org
Subject: [PATCH] Fix the bug of umsdos related to change of filldir_t
Date: 29 Aug 2001 00:16:25 +0900	[thread overview]
Message-ID: <87g0acgqpi.fsf@devron.myhome.or.jp> (raw)

Peter Fales <psfales@lucent.com> writes:

> On Mon, Aug 20, 2001 at 04:24:08AM +0900, OGAWA Hirofumi wrote:
> > Hi,
> > 
> > Peter Fales <psfales@lucent.com> writes:
> > 
> > > My UMSDOS file system stopped working when I switch from 2.4.8 to 
> > > 2.4.9.  I can mount the partition as "msdos" or even "vfat" but if
> > > I use "umsdos" there are no files visible.  Has anyone else seen this?
> > 
> > Probably I think it related to change of filldir_t.
> > This problem fixed with the following patch?
>
> Yes.  It works!  Thanks!  Will that change go into the official
> kernel??

Please apply the following patch.
-- 
OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>

diff -urN linux-2.4.10-pre1/fs/umsdos/dir.c umsdos_off_t-2.4.10-pre1/fs/umsdos/dir.c
--- linux-2.4.10-pre1/fs/umsdos/dir.c	Sat Feb 10 04:29:44 2001
+++ umsdos_off_t-2.4.10-pre1/fs/umsdos/dir.c	Tue Aug 28 22:51:23 2001
@@ -67,7 +67,7 @@
 static int umsdos_dir_once (	void *buf,
 				const char *name,
 				int len,
-				off_t offset,
+				loff_t offset,
 				ino_t ino,
 				unsigned type)
 {
diff -urN linux-2.4.10-pre1/fs/umsdos/ioctl.c umsdos_off_t-2.4.10-pre1/fs/umsdos/ioctl.c
--- linux-2.4.10-pre1/fs/umsdos/ioctl.c	Thu Apr 19 03:49:13 2001
+++ umsdos_off_t-2.4.10-pre1/fs/umsdos/ioctl.c	Tue Aug 28 22:51:23 2001
@@ -28,7 +28,7 @@
 				     void *buf,
 				     const char *name,
 				     int name_len,
-				     off_t offset,
+				     loff_t offset,
 				     ino_t ino,
 				     unsigned type)
 {
diff -urN linux-2.4.10-pre1/fs/umsdos/rdir.c umsdos_off_t-2.4.10-pre1/fs/umsdos/rdir.c
--- linux-2.4.10-pre1/fs/umsdos/rdir.c	Sat Feb 10 04:29:44 2001
+++ umsdos_off_t-2.4.10-pre1/fs/umsdos/rdir.c	Tue Aug 28 22:51:23 2001
@@ -32,7 +32,7 @@
 static int rdir_filldir (	void *buf,
 				const char *name,
 				int name_len,
-				off_t offset,
+				loff_t offset,
 				ino_t ino,
 				unsigned int d_type)
 {


             reply	other threads:[~2001-08-28 15:17 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-08-28 15:16 OGAWA Hirofumi [this message]
2001-08-28 15:18 ` Linus Torvalds

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=87g0acgqpi.fsf@devron.myhome.or.jp \
    --to=hirofumi@mail.parknet.co.jp \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@transmeta.com \
    /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®