Bug#646518: ufsutils: Wrong superblock after mkfs.ufs

2011-11-13 Thread Robert Millan
tags 646518 fixed-upstream
thanks

2011/10/31 Vladimir 'φ-coder/phcoder' Serbinenko phco...@gmail.com:
 -    ino_t     fs_snapinum[FSMAXSNAP];/* list of snapshot inode numbers */
 +    u_int32_t fs_snapinum[FSMAXSNAP];/* list of snapshot inode numbers */

FYI it seems this has been fixed in upstream (only in 10-CURRENT though):

http://svnweb.freebsd.org/base?view=revisionrevision=227382

-- 
Robert Millan



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#646518: ufsutils: Wrong superblock after mkfs.ufs

2011-10-30 Thread Vladimir 'φ-coder/phcoder' Serbinenko
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


Bug#646518: ufsutils: Wrong superblock after mkfs.ufs

2011-10-24 Thread phcoder
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.

-- 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



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org