Subject: PR/32034 CVS commit: src/sys/fs/tmpfs
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: Julio M. Merino Vidal <jmmv@netbsd.org>
List: netbsd-bugs
Date: 11/05/2006 17:10:04
The following reply was made to PR kern/32034; it has been noted by GNATS.
From: "Julio M. Merino Vidal" <jmmv@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc:
Subject: PR/32034 CVS commit: src/sys/fs/tmpfs
Date: Sun, 5 Nov 2006 16:59:18 +0000 (UTC)
Module Name: src
Committed By: jmmv
Date: Sun Nov 5 16:59:18 UTC 2006
Modified Files:
src/sys/fs/tmpfs: tmpfs.h tmpfs_subr.c tmpfs_vnops.c
Log Message:
Truncate directory cookies to 31 bits to avoid problems exposed in Linux
binaries which cast the returned values to 64-bits and fail due to sign
expansion. More details are provided in the big comment in tmpfs.h that
describes how the new tmpfs_dircookie works.
This is a rather ugly hack that shall be fixed with a cleaner solution,
but this resolves the problem in an effective way.
Fixes kern PR/32034.
To generate a diff of this commit:
cvs rdiff -r1.21 -r1.22 src/sys/fs/tmpfs/tmpfs.h
cvs rdiff -r1.26 -r1.27 src/sys/fs/tmpfs/tmpfs_subr.c
cvs rdiff -r1.28 -r1.29 src/sys/fs/tmpfs/tmpfs_vnops.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.