Questions tagged [hfs]

Hierarchical File System (HFS) is a proprietary file system developed by Apple Inc. for use in computer systems running Mac OS.

Originally designed for use on floppy and hard disks, it can also be found on read-only media such as CD-ROMs. HFS is also referred to as Mac OS Standard (or, erroneously, "HFS Standard"), while its successor, HFS Plus, is also called Mac OS Extended (or, erroneously, "HFS Extended"). With the introduction of OS X 10.6, Apple has dropped support to format or write HFS disks and images, which are only supported as read-only volumes.

26 questions
6
votes
1 answer

When did Apple deprecate or stop publishing the APIs for using named forks, the forks other than the data and resource fork?

Back in the day, one of the Quirks of the Macintosh OS was that files had two "forks", a "resource fork" which held resources used by software through dedicated resource APIs, and a "data fork", which held the plain old data like on other systems,…
hippietrail
  • 15,848
  • 18
  • 99
  • 158
4
votes
1 answer

Netatalk on RPi, resulted in hfs+ drive read-only on RPi and not mounting on macOS

Background I was trying to use netatalk to create Time Capsule using an Raspberry Pi 3, following the tutorial here. Some version info: netatalk 3.1.12 macOS 10.14.5 Raspberian 4.19.50-v7+ Issues and findings After reaching the last part of the…
Marco Leong
  • 565
  • 4
  • 11
4
votes
3 answers

Rsync bash script and hard linking files

I am creating a bash script to backup my files with rsync. Backups all come from a single directory. I only want new or modified files to be backed up. Currently, I am telling rsync to backup the dir, and to check the files compared to the last…
David Houde
  • 4,835
  • 1
  • 20
  • 29
4
votes
2 answers

What characters are illegal on the filename on iOS or OS X?

What characters are illegal on the filename on iOS or OS X? For example, char "/" is illegal. I need to remove all of them and only them.
Dmitry
  • 14,306
  • 23
  • 105
  • 189
3
votes
2 answers

Wait for file removal after close

I'm working on a quota manager implemented in C/C++ under OS X that limit the maximum size of a specific folder. In my project there are generic thread workers that may perform either writing new data to the folder or moving data from the folder to…
Zohar81
  • 4,554
  • 5
  • 29
  • 82
3
votes
3 answers

How does one map physical sectors of a disk to the files that contain them on an HFS+ volume on Mac OS X

I've been recovering a hard disk using dd_rescue, which provides me a list of all of the device sectors it could not copy due to hardware errors. I'd like to take that list, and write a tool to give me all of the files that contain these bad sectors…
Joey Hagedorn
  • 2,408
  • 19
  • 22
2
votes
3 answers

How to compress file on HFS programmatically?

macOS HFS+ supports transparent filesystem-level compression. How can I enable this compression for certain files via a programmatic API? (e.g. Cocoa or C interface) I'd like to achieve effect of ditto --hfsCompression src dst, but without shelling…
Kornel
  • 97,764
  • 37
  • 219
  • 309
2
votes
2 answers

How to add alternative to program that located in /usr/bin

Is it possible to substitute binary with same name alternative? I have /usr/bin/qtcreator I want to use alternative version but /usr/bin/qtcreator is binary but not alternative. What the way I should do this?
Juriy
  • 63
  • 1
  • 7
2
votes
1 answer

How to properly install program to /opt dir

I've installed program qcad to /opt/qcad-dir directory. Binaries are in /opt/qcad-dir at all in one place. I had to change native qcad.sh script to use program as alternative (update-alternatives). I added DIR=/opt/qcad-dir to run the program with…
Juriy
  • 63
  • 1
  • 7
2
votes
1 answer

UF_TRACKED file flag from stat.h

In the header stat.h on osx 10.7 I found a define in fileflag UF_TRACKED. I googled that define but didn't find anything about the flag. Can you describe to me what this flag means? I encountered it when I tried to apply attributes to the file which…
toohtik
  • 1,892
  • 11
  • 27
1
vote
1 answer

kqueues on Mac OS X: strange event order

I monitor a file for changes in a separate thread using kqueues/ kevent(2). (I monitor a Python file for reparsing) I subscribe as following: EV_SET(&file_change, pyFileP, EVFILT_VNODE, EV_ADD | EV_CLEAR, NOTE_DELETE | NOTE_WRITE |…
buddhabrot
  • 1,558
  • 9
  • 14
1
vote
1 answer

using c# to open an image using hfs file system

Seems like an odd request. I want to take in an image file probably a .dmg or a .bin, which uses HFS file system. Ideally id like to mount the image because all i need to do is get certain files from it, I don't need everything. They probably will…
kkjamie
  • 11
  • 1
1
vote
1 answer

Show icon for creator code on OSX

How could I display a custom icon depending on a files creator code/type code. For example I have an application that opens files with the creator code 'TSTx', how would I set the icon for that creator code? I'm guessing that's how apps like…
JWood
  • 2,804
  • 2
  • 39
  • 64
1
vote
0 answers

How to print HFS journal info

I am trying to print HFS journal info. I am able to print successfully the journal header. but unable to print the block_list(journal Buffer). Any help would be appreciated .......
anonymos
  • 73
  • 6
1
vote
0 answers

Missing HFS promise error: Drag and Drop from Apple Mail app to Java app works in Windows but not in OSX environment

import java.awt.*; import java.awt.datatransfer.DataFlavor; import java.awt.datatransfer.Transferable; import java.awt.dnd.DnDConstants; import java.awt.dnd.DropTarget; import java.awt.dnd.DropTargetDragEvent; import…
1
2