Package: libmagic1
Version: 5.04-4
Tags: patch
Severity: wishlist

The current version of libmagic1 doesn't support detecting JFS
filesystem images. The files created with current jfsutils are JFS2
(JFS1 was the pre-2001 version used on AIX). Despite JFS_VERSION being
set to 2 in the source, mkfs.jfs writes s_version (the version field,
immediately following the 'JFS1' magic) as 1. The kernel's mounting code
in jfs_mount.c just checks to make sure that s_version <= JFS_VERSION,
so we're doing the same, assuming JFS_VERSION is 2.

Also of note, this patch contains a workaround for the issue noted the
comments on bug 466032--the filesystem label is a maximum of 16 bytes
long, and is not null-terminated; it's followed by the UUID, so a plain
"string >\0" match would output garbage when the label was sixteen bytes
long. Using a regex works around that problem.

This was originally reported on Launchpad:

https://bugs.launchpad.net/ubuntu/+source/file/+bug/395409

The patch will follow momentarily, so that I can put the bug number in
the description; please let me know if anything about it needs to be
changed.

Adam Buchbinder



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to