the bitrig master branch has been updated by pedro with 2 new commits:

commit 42e34d572d7a3799d71d8dc59d950a598f0aaa09
diff: https://github.com/bitrig/bitrig/commit/42e34d5
author: pedro martelletto <[email protected]>
date: Sat Oct 25 09:47:50 2014 +0200

Don't silently truncate uint64_t to off_t.

Prevent a silent truncation of uint64_t to off_t when calling vn_rdwr()
by explicitly checking against OFF_MAX. Add an earlier check to catch
this condition in the load case; when generating a snap, there is no
immediate way of knowing how large it will be, so we need to check every
time before calling vn_rdwr().

Problem noticed by Gerhard Roth <[email protected]>.

OK natano@ patrick@.

M       sys/tmpfs/tmpfs_snapshot.c

commit 14301b1ff76b1a40600171f1a5a4fb5c46648794
diff: https://github.com/bitrig/bitrig/commit/14301b1
author: pedro martelletto <[email protected]>
date: Sat Oct 25 13:44:15 2014 +0200

Define OFF_MAX, to be used only in the kernel.

Many variables in the kernel are of type off_t. There isn't, however, a
definition holding the highest value that this type can represent.
Address this issue by defining OFF_MAX; inspired by FreeBSD.

OK natano@ patrick@.

M       sys/sys/limits.h

Reply via email to