Please login or register.

Login with username, password and session length
Advanced search  

News:

Pages: [1]   Go Down

Author Topic: Warning! HFS+ support in Linux is still beta  (Read 13117 times)

teroyk

  • 512 MB
  • *****
  • Posts: 623
  • -
Warning! HFS+ support in Linux is still beta
« on: June 06, 2020, 01:30:27 PM »

Somebody might noticed that nowadays Linux has support for Mac OS 9 filesystem HFS+,
but it is still beta stage. I have noticed that sometimes big files over 4 GB not copied that they should.
They looks like ok size, but when you check MD5 or other checksum it is wrong and if you try
fix disk with OSX Disk utility it finds errors those files and fixin them to smaller size.

So you should calculate checksum (command in linux is md5sum, not md5 like in OSX) and then copy.
Remember there is some Mac OS 9 md5-tools, but what actually works with big files?

Logged

OS923

  • 512 MB
  • *****
  • Posts: 888
Re: Warning! HFS+ support in Linux is still beta
« Reply #1 on: June 08, 2020, 01:17:24 AM »

Mine works with unlimited file size. See https://macintoshgarden.org/apps/os-923
Logged

OS923

  • 512 MB
  • *****
  • Posts: 888
Re: Warning! HFS+ support in Linux is still beta
« Reply #2 on: September 05, 2020, 04:09:35 AM »

My bad. It's limited to 2 GB.
Logged

IIO

  • Staff Member
  • 4096 MB
  • *******
  • Posts: 4751
  • just a number
Re: Warning! HFS+ support in Linux is still beta
« Reply #3 on: September 05, 2020, 05:48:41 AM »

interesting; the block size file size limit between HFS and HFS extended is the main difference from a user perspective, but the "HFS+ for linux" all dont do it? :)

btw. can you use HFS+ with OS 7.0?
Logged
insert arbitrary signature here

Jubadub

  • 512 MB
  • *****
  • Posts: 518
  • There is no Mac in OS X
Re: Warning! HFS+ support in Linux is still beta
« Reply #4 on: September 06, 2020, 09:21:36 AM »

btw. can you use HFS+ with OS 7.0?

To my knowledge, Mac OS versions that predate 8.1 cannot write or access or even see files in an HFS+ partition. In fact, that is the "only real reason" that 68k Mac users might want to stick with 8.1 instead of 7.5.5. Although even 8.1, on 68k, can't boot from an HFS+ partition. (8.1 PowerPC can.)

On an offtopic side-note, the reason I bring up 7.5.5 instead of 7.6, 7.6.1, 8.0 and 8.1 is because it has full MFS support and can still be run in 24-bit mode on compatible machines (good for even greater software compatibility). For full MFS support, 7.6 could still be considered, but on top of lacking 24-bit mode, it accidentally rolls back a bugfix. 7.6.1 addresses the accidental rollback, but then also chops off some of the MFS support. Either 8.0 or 8.1 removed MFS support fully.
Logged

teroyk

  • 512 MB
  • *****
  • Posts: 623
  • -
Re: Warning! HFS+ support in Linux is still beta
« Reply #5 on: September 22, 2020, 05:58:19 AM »

My bad. It's limited to 2 GB.

What makes that 2 GB limit in your software? Signed 32-bit variable?
« Last Edit: September 22, 2020, 06:22:19 AM by teroyk »
Logged

OS923

  • 512 MB
  • *****
  • Posts: 888
Re: Warning! HFS+ support in Linux is still beta
« Reply #6 on: September 26, 2020, 01:43:19 AM »

Most of my programs read the files entirely into memory, which means that the size is limited to the maximum memory partition for a program which is about 1 GB. Because I had some files that were larger I wrote several checksum calculators that read the files in blocks of 16 K. I thought that I had done this with HFS+ but I checked it and it’s HFS. But no worries, my new framework uses HFS+. The new C++ programs will support large files.
Logged

OS923

  • 512 MB
  • *****
  • Posts: 888
Re: Warning! HFS+ support in Linux is still beta
« Reply #7 on: May 03, 2021, 07:30:49 AM »

My new programs calculate CRCs and checksums on data forks that may be larger than 2 GB:
- Calc CRC32 (30 MB/s) (based on the standard algorithm).
- Calc MD5 (30 MB/s) (based on the code of MetroWerks).
- Calc Whirlpool (6.7 MB/s) (based on the code of Vincent Rijmen).
- Calc Zip32 (30 MB/s) (based on the standard algorithm).
This is about 50% faster than my old programs that were limited to 2 GB.
They were tested on a MDD 1.25 GHz DP with standard 128 GB HD.
Logged

OS923

  • 512 MB
  • *****
  • Posts: 888
Re: Warning! HFS+ support in Linux is still beta
« Reply #8 on: May 07, 2021, 08:08:05 AM »

It's better than I thought. It calculates a CRC on a 600 MB file in 20 seconds, while the old program needs 35 seconds.

The new version supports suspend and resume.
Logged

OS923

  • 512 MB
  • *****
  • Posts: 888
Re: Warning! HFS+ support in Linux is still beta
« Reply #9 on: May 10, 2021, 09:27:47 AM »

!!! BUG !!!

Calc Zip32 calculates a CRC32 and Calc CRC32 calculates a Zip32. They both do the same calculation, but CRC32 will at the end xor the result with 0xFFFFFFFF. When I moved the calculation to a common base class, I moved the xor too, thus Calc Zip32 did the xor once, and Calc CRC32 did the xor twice, and this caused the bug. This is now corrected.
Logged

OS923

  • 512 MB
  • *****
  • Posts: 888
Re: Warning! HFS+ support in Linux is still beta
« Reply #10 on: May 25, 2021, 07:20:05 AM »

I eliminated unnecessary copies. The new version is 2% faster.
Logged

OS923

  • 512 MB
  • *****
  • Posts: 888
Re: Warning! HFS+ support in Linux is still beta
« Reply #11 on: July 13, 2021, 07:27:14 AM »

I improved it with faster drawing.
Logged
Pages: [1]   Go Up

Recent Topics