Andriy Gapon
497e910cd3
fstat: fix fsid comparison when executed on systems with 64-bit long
...
This affects only fstat on zfs and devfs, only on 64-bit systems
and only when fsid is greater than 2^31 - 1.
When fstat examines a file via stat(2) it takes uint32_t st_dev
and assigns to (signed) (64-bit) long fsid, this results in
a positive value.
When fstat examines opened files it takes int32_t f_fsid.val[0]
and assigns to (signed) (64-bit) long fsid, this results in
a negative value.
So, while initially st_dev and f_fsid.val[0] have the same bit
values they get promoted to different 64-bit values because
of the signed-vs-unsigned difference.
A fix is to use "more natural" positive numbers by introducing
intermediate unsigned cast for f_fsid.val[0].
Reviewed by: jhb, lulf
Approved by: re (kib)
MFC after: 1 week (to stable/7)
2009-08-20 10:57:14 +00:00
..
2008-10-19 08:41:10 +00:00
2008-10-19 08:41:10 +00:00
2009-03-20 17:11:45 +00:00
2008-10-19 08:41:10 +00:00
2008-10-19 08:41:10 +00:00
2008-10-19 08:41:10 +00:00
2008-10-19 08:41:10 +00:00
2008-10-19 08:41:10 +00:00
2009-02-02 11:19:56 +00:00
2008-10-19 08:41:10 +00:00
2009-02-04 22:04:06 +00:00
2008-10-19 08:41:10 +00:00
2008-10-19 08:41:10 +00:00
2008-10-19 08:41:10 +00:00
2008-10-19 08:41:10 +00:00
2008-10-19 08:41:10 +00:00
2008-10-19 08:41:10 +00:00
2009-08-15 15:40:30 +00:00
2008-10-19 08:41:10 +00:00
2009-06-20 18:24:29 +00:00
2008-10-19 08:41:10 +00:00
2008-10-19 08:41:10 +00:00
2009-02-26 21:43:15 +00:00
2009-06-15 21:05:00 +00:00
2008-10-19 08:41:10 +00:00
2008-10-19 08:41:10 +00:00
2008-10-19 08:41:10 +00:00
2008-10-19 08:41:10 +00:00
2008-10-19 08:41:10 +00:00
2008-10-19 08:41:10 +00:00
2008-10-19 08:41:10 +00:00
2008-10-19 08:41:10 +00:00
2008-10-19 08:41:10 +00:00
2008-10-19 08:41:10 +00:00
2009-07-06 02:02:45 +00:00
2008-12-13 15:44:29 +00:00
2009-01-10 12:47:22 +00:00
2008-11-23 19:43:45 +00:00
2008-10-19 08:41:10 +00:00
2009-04-01 08:33:54 +00:00
2009-06-01 21:58:59 +00:00
2009-02-02 11:19:56 +00:00
2009-04-30 01:24:53 +00:00
2009-06-01 21:54:59 +00:00
2008-12-23 01:22:57 +00:00
2008-10-19 08:41:10 +00:00
2008-10-19 08:41:10 +00:00
2008-10-19 08:41:10 +00:00
2008-10-19 08:41:10 +00:00
2008-10-19 08:41:10 +00:00
2009-01-17 13:34:56 +00:00
2009-05-04 00:37:44 +00:00
2008-10-19 08:41:10 +00:00
2009-05-30 10:42:19 +00:00
2008-10-19 08:41:10 +00:00
2008-10-19 08:41:10 +00:00
2008-10-19 08:41:10 +00:00
2008-10-19 08:41:10 +00:00
2009-08-20 10:57:14 +00:00
2008-10-19 08:41:10 +00:00
2008-10-19 08:41:10 +00:00
2008-10-19 08:41:10 +00:00
2008-10-19 08:41:10 +00:00
2008-10-19 08:41:10 +00:00
2008-10-19 08:41:10 +00:00
2008-10-19 08:41:10 +00:00
2009-01-12 21:49:42 +00:00
2009-07-31 08:37:27 +00:00
2008-10-19 08:41:10 +00:00
2008-10-19 08:41:10 +00:00
2009-06-23 23:32:24 +00:00
2008-10-19 08:41:10 +00:00
2009-06-19 15:58:24 +00:00
2008-10-19 08:41:10 +00:00
2008-10-19 08:41:10 +00:00
2009-06-24 21:10:52 +00:00
2008-10-19 08:41:10 +00:00
2009-07-08 10:16:16 +00:00
2009-07-18 10:36:18 +00:00
2008-10-19 08:41:10 +00:00
2009-06-23 23:17:04 +00:00
2009-06-24 18:18:35 +00:00
2009-03-11 21:48:36 +00:00
2009-02-21 03:53:06 +00:00
2008-10-19 08:41:10 +00:00
2008-10-19 08:41:10 +00:00
2008-10-19 08:41:10 +00:00
2008-10-19 08:41:10 +00:00
2008-10-19 08:41:10 +00:00
2009-07-29 09:20:32 +00:00
2008-10-19 08:41:10 +00:00
2008-10-19 08:41:10 +00:00
2008-10-19 08:41:10 +00:00
2009-06-23 20:57:27 +00:00
2008-10-19 08:41:10 +00:00
2009-07-24 13:40:25 +00:00
2008-10-19 08:41:10 +00:00
2008-10-19 08:41:10 +00:00
2008-10-19 08:41:10 +00:00
2009-04-19 23:34:22 +00:00
2008-10-19 08:41:10 +00:00
2008-10-19 08:41:10 +00:00
2008-10-19 08:41:10 +00:00
2008-10-19 08:41:10 +00:00
2008-11-17 20:49:29 +00:00
2008-10-19 08:41:10 +00:00
2009-01-16 15:00:30 +00:00
2009-06-23 23:34:46 +00:00
2009-06-23 23:37:25 +00:00
2008-10-19 08:41:10 +00:00
2008-10-19 08:41:10 +00:00
2009-03-17 19:37:47 +00:00
2008-10-19 08:41:10 +00:00
2008-10-19 08:41:10 +00:00
2009-07-14 09:19:33 +00:00
2008-10-19 08:41:10 +00:00
2008-10-19 08:41:10 +00:00
2008-10-19 08:41:10 +00:00
2008-10-19 08:41:10 +00:00
2008-10-19 08:41:10 +00:00
2008-10-19 08:41:10 +00:00
2009-06-18 16:40:00 +00:00
2008-10-19 08:41:10 +00:00
2008-10-19 08:41:10 +00:00
2009-07-09 16:40:00 +00:00
2009-06-19 15:58:24 +00:00
2009-02-28 16:16:37 +00:00
2009-06-24 18:42:21 +00:00
2008-10-19 08:41:10 +00:00
2009-02-28 15:53:36 +00:00
2008-10-19 08:41:10 +00:00
2008-10-19 08:41:10 +00:00
2008-12-23 22:51:10 +00:00
2008-10-19 08:41:10 +00:00
2008-10-19 08:41:10 +00:00
2008-10-19 08:41:10 +00:00
2008-10-19 08:41:10 +00:00
2008-10-19 08:41:10 +00:00
2008-10-19 08:41:10 +00:00
2008-10-19 08:41:10 +00:00
2008-10-19 08:41:10 +00:00
2009-05-28 21:37:40 +00:00
2008-10-19 08:41:10 +00:00
2009-02-21 03:50:25 +00:00
2008-10-19 08:41:10 +00:00
2009-08-12 10:41:37 +00:00
2009-06-19 15:58:24 +00:00
2008-10-19 08:41:10 +00:00
2008-10-19 08:41:10 +00:00
2009-06-15 21:52:27 +00:00
2008-10-19 08:41:10 +00:00
2008-10-19 08:41:10 +00:00
2008-10-19 08:41:10 +00:00
2008-10-19 08:41:10 +00:00
2008-10-19 08:41:10 +00:00
2008-10-19 08:41:10 +00:00
2008-10-19 08:41:10 +00:00
2008-10-19 08:41:10 +00:00
2008-10-19 08:41:10 +00:00
2008-10-19 08:41:10 +00:00
2008-10-19 08:41:10 +00:00
2009-05-25 21:29:06 +00:00
2008-10-19 08:41:10 +00:00
2008-10-19 08:41:10 +00:00
2009-06-24 18:42:21 +00:00
2008-10-19 08:41:10 +00:00
2009-07-09 16:40:00 +00:00
2009-01-24 05:32:11 +00:00
2009-02-11 20:36:17 +00:00
2009-04-04 20:58:18 +00:00
2009-03-15 09:58:31 +00:00
2008-10-19 08:41:10 +00:00
2009-06-05 09:08:53 +00:00
2009-02-21 03:38:46 +00:00
2009-04-18 06:03:09 +00:00
2008-10-19 08:41:10 +00:00
2008-10-19 08:41:10 +00:00
2008-10-19 08:41:10 +00:00
2008-10-19 08:41:10 +00:00
2008-10-19 08:41:10 +00:00
2008-10-19 08:41:10 +00:00
2009-03-10 15:25:19 +00:00
2008-10-19 08:41:10 +00:00
2008-10-19 08:41:10 +00:00
2008-10-19 08:41:10 +00:00
2008-10-19 08:41:10 +00:00
2009-02-21 03:42:31 +00:00
2009-05-28 00:38:24 +00:00
2008-10-19 08:41:10 +00:00
2008-10-19 08:41:10 +00:00
2008-10-19 08:41:10 +00:00
2008-10-19 08:41:10 +00:00
2008-10-19 08:41:10 +00:00
2008-10-19 08:41:10 +00:00
2008-10-19 08:41:10 +00:00
2008-10-19 08:41:10 +00:00
2008-10-19 08:41:10 +00:00
2008-10-19 08:41:10 +00:00
2008-10-19 08:41:10 +00:00
2009-02-23 18:36:54 +00:00
2009-06-23 23:16:00 +00:00
2008-10-19 08:41:10 +00:00
2008-10-19 08:41:10 +00:00
2008-10-19 08:41:10 +00:00
2008-10-19 08:41:10 +00:00
2008-10-19 08:41:10 +00:00
2008-10-19 08:41:10 +00:00
2008-10-19 08:41:10 +00:00
2009-02-21 03:43:20 +00:00
2008-10-19 08:41:10 +00:00
2008-10-19 08:41:10 +00:00
2008-12-06 19:21:56 +00:00
2008-10-19 08:41:10 +00:00
2008-10-19 08:41:10 +00:00
2008-10-19 08:41:10 +00:00
2008-10-19 08:41:10 +00:00
2008-10-19 08:41:10 +00:00
2008-10-19 08:41:10 +00:00
2008-10-19 08:41:10 +00:00
2008-10-19 08:41:10 +00:00
2008-10-19 08:41:10 +00:00
2008-10-19 08:41:10 +00:00
2008-10-19 08:41:10 +00:00
2008-10-19 08:41:10 +00:00
2009-06-25 16:15:39 +00:00
2009-06-25 16:15:39 +00:00
2009-06-25 16:15:39 +00:00
2009-06-15 21:52:27 +00:00
2008-10-19 08:41:10 +00:00