]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/hfs/hfs_btreeio.c
xnu-2050.7.9.tar.gz
[apple/xnu.git] / bsd / hfs / hfs_btreeio.c
index f69c780c08ac76292e0ec23c8f2624dacfafcd3a..7e5182cd9996c82bd7f3fae46d712db108660021 100644 (file)
@@ -865,6 +865,18 @@ again:
        lck_mtx_unlock(&hfsmp->hfs_mutex);
 
        (void) hfs_flushvolumeheader(hfsmp, MNT_WAIT, HFS_ALTFLUSH);
+
+       if (intrans) {
+               hfs_end_transaction(hfsmp);
+               intrans = 0;
+       }
+
+       /* Initialize the vnode for virtual attribute data file */
+       result = init_attrdata_vnode(hfsmp);
+       if (result) {
+               printf("hfs_create_attr_btree: init_attrdata_vnode() error=%d\n", result); 
+       }
+
 exit:
        if (vp) {
                hfs_unlock(VTOC(vp));