From: Richard Russon <rich@flatcap.org>
To: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: lkml <linux-kernel@vger.kernel.org>
Subject: [PATCH] LDM bugfix - 2.4.13-ac5
Date: 01 Nov 2001 14:14:16 +0000 [thread overview]
Message-ID: <1004624056.1015.11.camel@home.flatcap.org> (raw)
Hi Alan,
Please can you apply this patch to 2.4.13-ac5.
It fixes a minor mistake when reading the LDM database.
Cheers,
FlatCap (Rich)
ntfs@flatcap.org
diff -urN linux-2.4.13-ac5/fs/partitions/ldm.c linux-2.4.13-ac5-ldm/fs/partitions/ldm.c
--- linux-2.4.13-ac5/fs/partitions/ldm.c Tue Oct 30 19:58:29 2001
+++ linux-2.4.13-ac5-ldm/fs/partitions/ldm.c Thu Nov 1 04:34:53 2001
@@ -1,7 +1,7 @@
/*
* ldm - Part of the Linux-NTFS project.
*
- * Copyright (C) 2001 Richard Russon <ntfs@flatcap.org>
+ * Copyright (C) 2001 Richard Russon <ldm@flatcap.org>
* Copyright (C) 2001 Anton Altaparmakov <antona@users.sf.net> (AIA)
*
* Documentation is available at http://linux-ntfs.sf.net/ldm
@@ -453,7 +453,10 @@
delta = vblk * vsize + 0x18;
if (delta >= 512)
goto brelse_out;
- if (block[0x13] != VBLK_DISK)
+ if (block[0x0D] != 0) /* Extended VBLK, ignore */
+ continue;
+ if ((block[0x13] != VBLK_DSK1) &&
+ (block[0x13] != VBLK_DSK2))
continue;
/* Calculate relative offsets. */
rel_objid = 1 + block[0x18];
diff -urN linux-2.4.13-ac5/fs/partitions/ldm.h linux-2.4.13-ac5-ldm/fs/partitions/ldm.h
--- linux-2.4.13-ac5/fs/partitions/ldm.h Tue Oct 30 19:58:29 2001
+++ linux-2.4.13-ac5-ldm/fs/partitions/ldm.h Thu Nov 1 05:39:01 2001
@@ -1,11 +1,9 @@
#ifndef _FS_PT_LDM_H_
#define _FS_PT_LDM_H_
/*
- * $Id: ldm.h,v 1.13 2001/07/23 19:49:49 antona Exp $
- *
* ldm - Part of the Linux-NTFS project.
*
- * Copyright (C) 2001 Richard Russon <ntfs@flatcap.org>
+ * Copyright (C) 2001 Richard Russon <ldm@flatcap.org>
* Copyright (C) 2001 Anton Altaparmakov <antona@users.sf.net>
*
* Documentation is available at http://linux-ntfs.sf.net/ldm
@@ -25,7 +23,7 @@
* in the file COPYING); if not, write to the Free Software Foundation,
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-#include <asm/types.h>
+#include <linux/types.h>
#include <asm/unaligned.h>
#include <asm/byteorder.h>
#include <linux/genhd.h>
@@ -45,8 +43,10 @@
/* The defined vblk types. */
#define VBLK_COMP 0x32 /* Component */
#define VBLK_PART 0x33 /* Partition */
-#define VBLK_DISK 0x34 /* Disk */
-#define VBLK_DGRP 0x45 /* Disk Group */
+#define VBLK_DSK1 0x34 /* Disk */
+#define VBLK_DSK2 0x44 /* Disk */
+#define VBLK_DGR1 0x35 /* Disk Group */
+#define VBLK_DGR2 0x45 /* Disk Group */
#define VBLK_VOLU 0x51 /* Volume */
/* Other constants. */
reply other threads:[~2001-11-01 14:14 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=1004624056.1015.11.camel@home.flatcap.org \
--to=rich@flatcap.org \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=linux-kernel@vger.kernel.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®