tag 646518 patch
thanks
On 24.10.2011 20:23, phcoder wrote:
Package: ufsutils
Version: 8.2-2
Severity: normal
Tags: d-i
The superblock is wrong when using mkfs.ufs. The magic 1901 5419 is at
0x00105b0 instead of 0x001055c as it is with FreeBSD newfs.
Investigation shows that this is because ino_t is 64-bit on GNU/Linux
amd64. Following patch fixes the problem:
diff -ur ufsutils-8.2//sys/ufs/ffs/fs.h
/home/phcoder/repos/ufsutils/ufsutils-8.2//sys/ufs/ffs/fs.h
--- ufsutils-8.2//sys/ufs/ffs/fs.h2011-10-31 00:18:35.0 +0100
+++ /home/phcoder/repos/ufsutils/ufsutils-8.2//sys/ufs/ffs/fs.h
2011-10-31 00:19:23.238889421 +0100
@@ -336,7 +336,7 @@
ufs2_daddr_t fs_csaddr;/* blk addr of cyl grp summary area */
int64_t fs_pendingblocks;/* (u) blocks being freed */
u_int32_t fs_pendinginodes;/* (u) inodes being freed */
-ino_t fs_snapinum[FSMAXSNAP];/* list of snapshot inode numbers */
+u_int32_t fs_snapinum[FSMAXSNAP];/* list of snapshot inode numbers */
u_int32_t fs_avgfilesize;/* expected average file size */
u_int32_t fs_avgfpdir;/* expected # of files per directory */
int32_t fs_save_cgsize;/* save real cg size to use fs_bsize */
-- System Information:
Debian Release: wheezy/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1,
'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 3.0.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages ufsutils depends on:
ii libbsd0 0.3.0-1
ii libc6 2.13-21
ii libedit2 2.11-20080614-3
ufsutils recommends no packages.
ufsutils suggests no packages.
-- debconf-show failed
--
Regards
Vladimir 'φ-coder/phcoder' Serbinenko
signature.asc
Description: OpenPGP digital signature