diff options
author | David Sterba <dsterba@suse.cz> | 2013-07-09 18:38:55 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.cz> | 2013-08-09 14:32:35 +0200 |
commit | 82ddde496a3c10e4f48363c578c9c2510d3a48e7 (patch) | |
tree | 1c29f408f65ad1a6ec61c0a303754e1450cefc89 /btrfs-list.c | |
parent | 626123c2841a4307d5f18cf64141d774ae1f6f27 (diff) | |
download | btrfs-progs-82ddde496a3c10e4f48363c578c9c2510d3a48e7.tar.gz |
btrfs-progs: use accessor macro for otime
The root_item->otime value must be accessed via the macro otherwise the
value is incorrect on big endian machines.
Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Diffstat (limited to 'btrfs-list.c')
-rw-r--r-- | btrfs-list.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/btrfs-list.c b/btrfs-list.c index 4fab858..9deddd5 100644 --- a/btrfs-list.c +++ b/btrfs-list.c @@ -1052,7 +1052,7 @@ static int __list_subvol_search(int fd, struct root_lookup *root_lookup) flags = btrfs_root_flags(ri); if(sh.len > sizeof(struct btrfs_root_item_v0)) { - t = ri->otime.sec; + t = btrfs_stack_timespec_sec(&ri->otime); ogen = btrfs_root_otransid(ri); memcpy(uuid, ri->uuid, BTRFS_UUID_SIZE); memcpy(puuid, ri->parent_uuid, BTRFS_UUID_SIZE); |