Lines Matching defs:xattr
937 struct cp_root_xattr *xattr = NULL;
938 MALLOC (xattr, struct cp_root_xattr*, sizeof(struct cp_root_xattr), M_TEMP, M_WAITOK);
939 if (xattr == NULL) {
943 bzero (xattr, sizeof(struct cp_root_xattr));
946 cperr = cp_getrootxattr (hfsmp, xattr);
955 if ((xattr->major_version < CP_PREV_MAJOR_VERS) || (xattr->major_version > CP_NEW_MAJOR_VERS)) {
961 bzero(xattr, sizeof(struct cp_root_xattr));
962 xattr->major_version = CP_NEW_MAJOR_VERS;
963 xattr->minor_version = CP_MINOR_VERS;
964 cperr = cp_setrootxattr (hfsmp, xattr);
966 majorversion = xattr->major_version;
967 minorversion = xattr->minor_version;
968 flags = xattr->flags;
969 if (xattr->flags & CP_ROOT_CRYPTOG1) {
973 if (xattr) {
974 FREE(xattr, M_TEMP);
981 printf("Running with CP root xattr: %d.%d\n", majorversion, minorversion);