From owner-freebsd-bugs Sat Jul 8 0:20:20 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 6D04737BCA4 for ; Sat, 8 Jul 2000 00:20:00 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id AAA17789; Sat, 8 Jul 2000 00:20:00 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from barter.dewline.com (barter.dewline.com [209.208.153.2]) by hub.freebsd.org (Postfix) with ESMTP id EB30F37B594 for ; Sat, 8 Jul 2000 00:14:40 -0700 (PDT) (envelope-from mackler@barter.dewline.com) Received: (from mackler@localhost) by barter.dewline.com (8.9.1/8.9.1) id DAA16366; Sat, 8 Jul 2000 03:14:40 -0400 (EDT) Message-Id: <200007080714.DAA16366@barter.dewline.com> Date: Sat, 8 Jul 2000 03:14:40 -0400 (EDT) From: mackler-fb@dewline.com Reply-To: mackler-fb@dewline.com To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: kern/19782: mkisofs 1.12.1 (i386-unknown-freebsd4.0) doesn't preserve hard links Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 19782 >Category: kern >Synopsis: mkisofs 1.12.1 (i386-unknown-freebsd4.0) doesn't preserve hard links >Confidential: no >Severity: non-critical >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Jul 08 00:20:00 PDT 2000 >Closed-Date: >Last-Modified: >Originator: Adam Mackler >Release: FreeBSD 4.0-STABLE i386 >Organization: Dewline Communications >Environment: mkisofs 1.12.1 (i386-unknown-freebsd4.0) >Description: When using mkisofs 1.12.1 from the ports collection, hard links in the source tree are not preserved in the ISO9660 that mkisofs creates. Joerg Schilling , who is listed on the man page as the maintainer says by email (7 Jul 2000): " . . . send a bugreport to the Freebsd kernel team. Mkisofs is OK, the bug is in the FreeBSD filesystem code." >How-To-Repeat: Do this: 1) make a test directory: mkdir /tmp/exampletree 2) make a test file: touch /tmp/exampletree/file1 3) make a link to the test file: ln /tmp/exampletree/file1 /tmp/exampletree/file2 4) take a look and see the hard link: ls -li /tmp/exampletree/ see (notice files have same inode): total 0 14 -rw-r--r-- 2 mackler wheel 0 Jul 8 06:48 file1 14 -rw-r--r-- 2 mackler wheel 0 Jul 8 06:48 file2 5) use mkisofs to make an iso9660 filesystem: mkisofs -o /tmp/iso9660.test /tmp/exampletree/ 6) mount the new iso9660 filesystem: vnconfig -cv vn0 /tmp/iso9660.test mount_cd9660 /dev/vn0c /mnt 7) take a look and see the two files are not linked: ls -li /mnt see (notice files have different inodes): total 0 47172 -r-xr-xr-x 1 root wheel 0 Jul 8 06:48 file1 47214 -r-xr-xr-x 1 root wheel 0 Jul 8 06:48 file2 8) clean up: umount /mnt vnconfig -u vn0 rm /tmp/iso9660.test rm -rf /tmp/exampletree/ >Fix: >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message