freebsd-nq/sys/geom/raid
Eitan Adler 7a22215c53 Fix undefined behavior: (1 << 31) is not defined as 1 is an int and this
shifts into the sign bit.  Instead use (1U << 31) which gets the
expected result.

This fix is not ideal as it assumes a 32 bit int, but does fix the issue
for most cases.

A similar change was made in OpenBSD.

Discussed with:	-arch, rdivacky
Reviewed by:	cperciva
2013-11-30 22:17:27 +00:00
..
g_raid_ctl.c Introduce 3 seconds timeout on graid stop command (mostly with -f flag). 2013-07-27 15:02:19 +00:00
g_raid_md_if.m Add optional -o argument to the graid label to specify some metadata 2012-05-03 05:32:56 +00:00
g_raid_tr_if.m
g_raid.c Merge GEOM direct dispatch changes from the projects/camlock branch. 2013-10-22 08:22:19 +00:00
g_raid.h MFprojects/camlock r256445: 2013-10-16 09:33:23 +00:00
md_ddf.c Merge GEOM direct dispatch changes from the projects/camlock branch. 2013-10-22 08:22:19 +00:00
md_ddf.h Add to GEOM RAID class module, supporting the DDF metadata format, as 2012-04-30 17:53:02 +00:00
md_intel.c Merge GEOM direct dispatch changes from the projects/camlock branch. 2013-10-22 08:22:19 +00:00
md_jmicron.c Merge GEOM direct dispatch changes from the projects/camlock branch. 2013-10-22 08:22:19 +00:00
md_nvidia.c Merge GEOM direct dispatch changes from the projects/camlock branch. 2013-10-22 08:22:19 +00:00
md_promise.c Merge GEOM direct dispatch changes from the projects/camlock branch. 2013-10-22 08:22:19 +00:00
md_sii.c Merge GEOM direct dispatch changes from the projects/camlock branch. 2013-10-22 08:22:19 +00:00
tr_concat.c MFprojects/camlock r256445: 2013-10-16 09:33:23 +00:00
tr_raid0.c MFprojects/camlock r256445: 2013-10-16 09:33:23 +00:00
tr_raid1.c MFprojects/camlock r256445: 2013-10-16 09:33:23 +00:00
tr_raid1e.c Fix undefined behavior: (1 << 31) is not defined as 1 is an int and this 2013-11-30 22:17:27 +00:00
tr_raid5.c MFprojects/camlock r256445: 2013-10-16 09:33:23 +00:00