Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No space left on device (sparse files) #8223

Open
chornns opened this issue May 20, 2024 · 0 comments
Open

No space left on device (sparse files) #8223

chornns opened this issue May 20, 2024 · 0 comments

Comments

@chornns
Copy link

chornns commented May 20, 2024

  • Electron-Builder Version: 23.0.3
  • Node Version: v16.20.2
  • Electron Version: 22.3.4
  • Electron Type (current, beta, nightly):
  • Target: mac
Copying…
could not access /Volumes/thing/Contents/Resource/sparsefile - No space left on device
Finishing…

This is due to an upstream issue with hdiutil interaction with sparse files (apparently on macOS 14) that can be observed thus:

➜ mkdir sparse
➜ dd if=/dev/zero of=sparse/big bs=1 count=0 seek=10000000
0+0 records in
0+0 records out
0 bytes transferred in 0.000014 secs (0 bytes/sec)
➜  hdiutil create -srcFolder sparse sparse.dmg
....could not access /Volumes/sparse/big - No space left on device

hdiutil: create failed - No space left on device
➜  mkdir notsparse
➜  cp -S sparse/big notsparse
➜  hdiutil create -srcFolder notsparse notsparse.dmg
............................................................
created: /Users/camhorn/sparsetest/notsparse.dmg
➜  ls -ls sparse notsparse .
.:
total 56
 0 drwxr-xr-x  3 camhorn  staff     96 May 17 11:48 notsparse
56 -rw-r--r--@ 1 camhorn  staff  24914 May 17 11:48 notsparse.dmg
 0 drwxr-xr-x  3 camhorn  staff     96 May 17 11:47 sparse

notsparse:
total 19536
19536 -rw-r--r--  1 camhorn  staff  10000000 May 17 11:48 big

sparse:
total 0
0 -rw-r--r--  1 camhorn  staff  10000000 May 17 11:47 big

It would be nice if electron-builder could override with the correct -size for the initial hdiutil create:

const imageArgs = addLogLevel(["create", "-srcfolder", appPath, "-volname", volumeName, "-anyowners", "-nospotlight", "-format", "UDRW"])

Or at least allow -size to be manually set.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant