Skip to content

Instantly share code, notes, and snippets.

@naota
Created September 3, 2018 06:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save naota/5579cbbdea96629710934be8e86e777f to your computer and use it in GitHub Desktop.
Save naota/5579cbbdea96629710934be8e86e777f to your computer and use it in GitHub Desktop.
#define MY_FSID_VAL0 0x546b23f0
#define MY_FSID_VAL1 0xcd0e1903
...
if (!error &&
st->f_fsid.val[0] == MY_FSID_VAL0 &&
st->f_fsid.val[1] == MY_FSID_VAL1)
st->f_type = EXT4_SUPER_MAGIC;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment