Date: Sat, 8 Jul 2000 03:14:40 -0400 (EDT) From: mackler-fb@dewline.com To: FreeBSD-gnats-submit@freebsd.org Subject: kern/19782: mkisofs 1.12.1 (i386-unknown-freebsd4.0) doesn't preserve hard links Message-ID: <200007080714.DAA16366@barter.dewline.com>
next in thread | raw e-mail | index | archive | help
>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 <schilling@fokus.gmd.de>, 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200007080714.DAA16366>