From: Istvan Varadi <istvan.varadi@eth.ericsson.se>
To: linux-kernel@vger.kernel.org, mnalis-umsdos@voyager.hr
Cc: torvalds@transmeta.com
Subject: [PATCH] umsdos, kernel 2.4.9
Date: Tue, 21 Aug 2001 08:55:02 +0200 [thread overview]
Message-ID: <20010821085501.A10721@duna48.eth.ericsson.se> (raw)
Hello,
I noticed, that sometimes the EMD file (--linux-.---) does not contain
the full name of the files in the directores, which results in file
not found errors. It happens, e.g. when extracting the HTML version of
the PHP manual (http://www.php.net/manual/en/manual.tar.gz).
The problem occurs when a directory entry crosses a page boundary.
The contents of the second page are copied from the wrong starting
address. The patch below solves this problem.
Istvan
diff -ruN linux-2.4.9.orig/fs/umsdos/emd.c linux-2.4.9/fs/umsdos/emd.c
--- linux-2.4.9.orig/fs/umsdos/emd.c Sun Aug 19 10:31:51 2001
+++ linux-2.4.9/fs/umsdos/emd.c Sun Aug 19 10:43:15 2001
@@ -259,10 +259,10 @@
p->ctime = cpu_to_le32(entry->ctime);
p->rdev = cpu_to_le16(entry->rdev);
p->mode = cpu_to_le16(entry->mode);
- memcpy(p->name,entry->name,
+ memcpy(p->spare,entry->spare,
(char *)(page_address(page) + PAGE_CACHE_SIZE) - p->spare);
memcpy(page_address(page2),
- entry->spare+PAGE_CACHE_SIZE-offs,
+ ((char*)entry)+PAGE_CACHE_SIZE-offs,
offs+info->recsize-PAGE_CACHE_SIZE);
ret = mapping->a_ops->commit_write(NULL,page2,0,
offs+info->recsize-PAGE_CACHE_SIZE);
reply other threads:[~2001-08-21 6:55 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=20010821085501.A10721@duna48.eth.ericsson.se \
--to=istvan.varadi@eth.ericsson.se \
--cc=ivaradi@freemail.c3.hu \
--cc=linux-kernel@vger.kernel.org \
--cc=mnalis-umsdos@voyager.hr \
--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®