search for: ocfslabellen

Displaying 1 result from an estimated 1 matches for "ocfslabellen".

2004 Feb 04
3
[PATCH] Adding ocfs support to blkid
...= sizeof(ovh)) + return -1; + + if (strncmp(ovh.signature, OCFS_MAGIC, sizeof(OCFS_MAGIC)) != 0) + return -1; + + if (lseek(fd, 512, SEEK_SET) != 512) + return -1; + + if (read(fd, (char *) &ovl, sizeof(ovl)) != sizeof(ovl)) + return -1; + + blkid_set_tag(dev, "LABEL", ovl.label, ocfslabellen(ovl)); + blkid_set_tag(dev, "MOUNT", ovh.mount, ocfsmountlen(ovh)); + set_uuid(dev, ovl.vol_id); + return 0; +} + /* * BLKID_BLK_OFFS is at least as large as the highest bim_kboff defined * in the type_array table below + bim_kbalign. @@ -371,6 +401,7 @@ { "swap", 0, 0x...