Hfs Alternatives

Similar projects and alternatives to hfs

  • zfs

    720 hfs VS zfs

    OpenZFS on Linux and FreeBSD

  • MySQL

    146 hfs VS MySQL

    MySQL Server, the world's most popular open source database, and MySQL Cluster, a real-time, open source transactional database.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • zfs

    OpenZFS on OS X (by openzfsonosx)

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better hfs alternative or higher similarity.

hfs reviews and mentions

Posts with mentions or reviews of hfs. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-07-30.
  • HFS Origins: The Turbo File System (2017)
    4 projects | news.ycombinator.com | 30 Jul 2023
    I believe most of the open source HFS code was from NeXT rather than Mac OS. A lot of classic Mac OS was still 68k assembly.

    eg:

    https://github.com/apple-oss-distributions/hfs/blob/hfs-106/...

    13-Jan-1998 jwc first cut (derived from old NextStep macfs.util code and cdrom.util code).

  • Apple's custom NVMes are amazingly fast – if you don't care about data integrity
    5 projects | news.ycombinator.com | 17 Feb 2022
    I just looked into this, since what you say and what Apple’s documentation says are two different things.

    Here is Apple’s documentation:

    https://devstreaming-cdn.apple.com/videos/wwdc/2019/419ef9ip...

    F_BARRIERFSYNC: fsync() with a barrier

    F_FULLFSYNC: Drive flush its cache to disk

    This sounds like the Linux fsync() and Linux syncfs() respectively. What you say is that F_FULLFSYNC is the same as Linux fsync() and your performance numbers back that up. Unfortunately, you would only see a difference between Linux fsync() and Linux syncfs() if you have files being asynchronously written at the same time as the files that are subject to fsync()/syncfs(). fsync() would only touch the chosen files while syncfs() would touch both. If you did not have heavy background file writes and F_FULLSYNC really is equivalent to syncfs(), you would not be able to tell the difference in your tests.

    That said, let’s look at how this actually works on Mac OS. Unfortunately, the apfs driver does not appear to be open source, but the HFS+ driver is. Here are the relevant pieces of code in HFS+:

    https://github.com/apple-oss-distributions/hfs/blob/hfs-556....

    https://github.com/apple-oss-distributions/hfs/blob/5e3008b6...

    First, let me start with saying this merits a faceplam. The fsync() operation is operating at the level of the mount point, not the individual file. F_FULLSYNC and F_BARRIERFSYNC are different, but they both might as well be variants of the Linux syncfs().

    For good measure, let us look at how this is done on the MacOS ZFS driver:

    https://github.com/openzfsonosx/zfs/blob/master/module/zfs/z...

    The file is properly synced independently of the mountpoint, such that other files being modified in the file are not immediately required to be written out to disk. That said, both F_FULLSYNC and F_BARRIERFSYNC on MacOS are mapped by the ZFS driver to the same function that implements fsync() on Linux:

    https://github.com/openzfs/zfs/blob/master/module/os/linux/z...

    For good measure, let us look at how syncfs() is implemented by ZFS on Linux:

    https://github.com/openzfs/zfs/blob/master/module/os/linux/z...

    It operates on the superblock, which is what MacOS’ HFS+ driver does.

    From this, I can conclude:

    Linux syncfs() == macOS F_FULLFSYNC on HFS+

    Linux fsync() == macOS fsync()/F_FULLFSYNC/F_BARRIERFSYNC on ZFS

    Also, MacOS F_BARRIERSYNC is a weakened Linux syncfs() and Apple’s documentation is very misleading (although maybe not technically wrong). POSIX does allow fsync to be implemented via syncfs (sync in POSIX, but I am saying syncfs from Linux to be less confusing). However, not issuing and waiting for the completion of an IO barrier on fsync is broken behavior like you claim.

    I am not sure how MacOS APFS behaves. I imagine that additional testing that takes into account the nuances in semantics would be able to clarify that. If it behaves like HFS+, it is broken.

Stats

Basic hfs repo stats
2
22
2.2
7 months ago

apple-oss-distributions/hfs is an open source project licensed under GNU General Public License v3.0 or later which is an OSI approved license.

The primary programming language of hfs is C.


Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com