Re: [PATCH V3 4/7] Btrfs-progs: fix wrong way to check if the root item contains otime and uuid
From: Anand Jain <hidden>
Date: 2012-09-18 05:54:28
From: Anand Jain <hidden>
Date: 2012-09-18 05:54:28
- if(ri->generation == ri->generation_v2) {
+ if(sh->len == sizeof(struct btrfs_root_item)) {
t = ri->otime.sec;This looks fine now but should this work when we move to v3 and still have access to v2 introduced members.? ker cli v3 v2 v2 introduced members are unnecessarily blocked v2 v3 --as above-- Thanks, Anand