diff options
author | Matthew Ahrens <[email protected]> | 2013-01-14 09:31:53 -0800 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2013-01-14 09:32:22 -0800 |
commit | a94addd9749e8272664a2476460e75829626a465 (patch) | |
tree | 98dfe99d487dc9343bc7ed528397e65eec36550e /include | |
parent | e6f7d015028a21d81d9f119928221c69d03c95be (diff) |
Illumos #3208 cross-endian incorrect user/group accounting
3208 moving zpool cross-endian results in incorrect user/group
accounting
Reviewed by: Adam Leventhal <[email protected]>
Reviewed by: Christopher Siden <[email protected]>
Approved by: Richard Lowe <[email protected]>
References:
illumos/illumos-gate@e828a46d29ad418487f50d56b5c19e2a1f9033a7
illumos changeset: 13835:eea81edc4f14
https://www.illumos.org/issues/3208
Ported-by: Brian Behlendorf <[email protected]>
Closes #627
Closes #1136
Diffstat (limited to 'include')
-rw-r--r-- | include/sys/sa_impl.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/sys/sa_impl.h b/include/sys/sa_impl.h index 6661e47cf..8ae05ce36 100644 --- a/include/sys/sa_impl.h +++ b/include/sys/sa_impl.h @@ -20,6 +20,7 @@ */ /* * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2012 by Delphix. All rights reserved. */ #ifndef _SYS_SA_IMPL_H @@ -181,7 +182,7 @@ typedef struct sa_hdr_phys { */ #define SA_HDR_LAYOUT_NUM(hdr) BF32_GET(hdr->sa_layout_info, 0, 10) -#define SA_HDR_SIZE(hdr) BF32_GET_SB(hdr->sa_layout_info, 10, 16, 3, 0) +#define SA_HDR_SIZE(hdr) BF32_GET_SB(hdr->sa_layout_info, 10, 6, 3, 0) #define SA_HDR_LAYOUT_INFO_ENCODE(x, num, size) \ { \ BF32_SET_SB(x, 10, 6, 3, 0, size); \ |