]> git.saurik.com Git - apple/hfs.git/blobdiff - hfs_util/hfsutil_jnl.c
hfs-304.tar.gz
[apple/hfs.git] / hfs_util / hfsutil_jnl.c
index 663a43f060cbaec28122b66ff4d42c6f48a552c7..1f2f8b55d6e21b6c80656a7e1b558b1730c3bca4 100644 (file)
@@ -414,15 +414,11 @@ DoMakeJournaled(char *volname, int jsize) {
        }
        // printf("Embedded offset == 0x%llx\n", embedded_offset);
 
-#if TARGET_OS_EMBEDDED
        /* 
         * Must use open_dprotected_np to create a class D file.  This will
         * be the same as standard open(2) on systems that do not support content protection
         */
        fd = open_dprotected_np (journal_fname, O_CREAT|O_TRUNC|O_RDWR, PROTECTION_CLASS_D, 0, 000);
-#else
-       fd = open (journal_fname, O_CREAT|O_TRUNC|O_RDWR, 000);
-#endif
        if (fd < 0) {
                fprintf(stderr, "Can't create journal file on volume %s (%s)\n",
                                volname, strerror(errno));
@@ -511,16 +507,11 @@ retry:
        jib.offset = (off_t)((unsigned int)jstart_block) * (off_t)((unsigned int)block_size);
        jib.size   = (off_t)((unsigned int)journal_size);
 
-#if TARGET_OS_EMBEDDED
        /* 
         * Use open_dprotected_np to create JIB as a class D file.  This will
         * behave the same as a standard open(2) on systems that do not support content protection
         */
        fd = open_dprotected_np(jib_fname, O_CREAT|O_TRUNC|O_RDWR, PROTECTION_CLASS_D, 0, 000);
-#else
-       fd = open(jib_fname, O_CREAT|O_TRUNC|O_RDWR, 000);
-#endif
-
        if (fd < 0) {
                fprintf(stderr, "Could not create journal info block file on volume %s (%s)\n",
                                volname, strerror(errno));