Build filesystem influences the DMG creation
I knew it would happen, sooner or later, in some project!
In this case, we run du -ms
which produces the same result:
du -ms Tor\ Browser/
400 Tor Browser/
But if we run without -ms
, we see that we obtain different block sizes:
Ext4
/media/edati> du Tor\ Browser/
8 Tor Browser/Tor Browser.app/Contents/Resources/en.lproj
936 Tor Browser/Tor Browser.app/Contents/Resources/distribution/extensions
940 Tor Browser/Tor Browser.app/Contents/Resources/distribution
140 Tor Browser/Tor Browser.app/Contents/Resources/res/cursors
16 Tor Browser/Tor Browser.app/Contents/Resources/res/MainMenu.nib
160 Tor Browser/Tor Browser.app/Contents/Resources/res
10980 Tor Browser/Tor Browser.app/Contents/Resources/fonts
12 Tor Browser/Tor Browser.app/Contents/Resources/TorBrowser/Docs/webtunnel
12 Tor Browser/Tor Browser.app/Contents/Resources/TorBrowser/Docs/snowflake
8 Tor Browser/Tor Browser.app/Contents/Resources/TorBrowser/Docs/conjure
36 Tor Browser/Tor Browser.app/Contents/Resources/TorBrowser/Docs/Licenses/PluggableTransports
124 Tor Browser/Tor Browser.app/Contents/Resources/TorBrowser/Docs/Licenses
592 Tor Browser/Tor Browser.app/Contents/Resources/TorBrowser/Docs
10244 Tor Browser/Tor Browser.app/Contents/Resources/TorBrowser/Tor
10840 Tor Browser/Tor Browser.app/Contents/Resources/TorBrowser
356 Tor Browser/Tor Browser.app/Contents/Resources/browser/features
25580 Tor Browser/Tor Browser.app/Contents/Resources/browser
8 Tor Browser/Tor Browser.app/Contents/Resources/defaults/pref
12 Tor Browser/Tor Browser.app/Contents/Resources/defaults
65932 Tor Browser/Tor Browser.app/Contents/Resources
85912 Tor Browser/Tor Browser.app/Contents/MacOS/Tor/PluggableTransports
97628 Tor Browser/Tor Browser.app/Contents/MacOS/Tor
20 Tor Browser/Tor Browser.app/Contents/MacOS/updater.app/Contents/Resources/English.lproj/MainMenu.nib
28 Tor Browser/Tor Browser.app/Contents/MacOS/updater.app/Contents/Resources/English.lproj
88 Tor Browser/Tor Browser.app/Contents/MacOS/updater.app/Contents/Resources
256 Tor Browser/Tor Browser.app/Contents/MacOS/updater.app/Contents/MacOS
356 Tor Browser/Tor Browser.app/Contents/MacOS/updater.app/Contents
360 Tor Browser/Tor Browser.app/Contents/MacOS/updater.app
8 Tor Browser/Tor Browser.app/Contents/MacOS/plugin-container.app/Contents/Resources/English.lproj
12 Tor Browser/Tor Browser.app/Contents/MacOS/plugin-container.app/Contents/Resources
88 Tor Browser/Tor Browser.app/Contents/MacOS/plugin-container.app/Contents/MacOS
112 Tor Browser/Tor Browser.app/Contents/MacOS/plugin-container.app/Contents
116 Tor Browser/Tor Browser.app/Contents/MacOS/plugin-container.app
342256 Tor Browser/Tor Browser.app/Contents/MacOS
408204 Tor Browser/Tor Browser.app/Contents
408208 Tor Browser/Tor Browser.app
40 Tor Browser/.background
409204 Tor Browser/
tmpfs
/dev/shm> du Tor\ Browser/
10240 Tor Browser/Tor Browser.app/Contents/Resources/TorBrowser/Tor
8 Tor Browser/Tor Browser.app/Contents/Resources/TorBrowser/Docs/webtunnel
8 Tor Browser/Tor Browser.app/Contents/Resources/TorBrowser/Docs/snowflake
32 Tor Browser/Tor Browser.app/Contents/Resources/TorBrowser/Docs/Licenses/PluggableTransports
116 Tor Browser/Tor Browser.app/Contents/Resources/TorBrowser/Docs/Licenses
4 Tor Browser/Tor Browser.app/Contents/Resources/TorBrowser/Docs/conjure
568 Tor Browser/Tor Browser.app/Contents/Resources/TorBrowser/Docs
10808 Tor Browser/Tor Browser.app/Contents/Resources/TorBrowser
12 Tor Browser/Tor Browser.app/Contents/Resources/res/MainMenu.nib
136 Tor Browser/Tor Browser.app/Contents/Resources/res/cursors
148 Tor Browser/Tor Browser.app/Contents/Resources/res
10968 Tor Browser/Tor Browser.app/Contents/Resources/fonts
4 Tor Browser/Tor Browser.app/Contents/Resources/en.lproj
932 Tor Browser/Tor Browser.app/Contents/Resources/distribution/extensions
932 Tor Browser/Tor Browser.app/Contents/Resources/distribution
4 Tor Browser/Tor Browser.app/Contents/Resources/defaults/pref
4 Tor Browser/Tor Browser.app/Contents/Resources/defaults
352 Tor Browser/Tor Browser.app/Contents/Resources/browser/features
25572 Tor Browser/Tor Browser.app/Contents/Resources/browser
65844 Tor Browser/Tor Browser.app/Contents/Resources
16 Tor Browser/Tor Browser.app/Contents/MacOS/updater.app/Contents/Resources/English.lproj/MainMenu.nib
20 Tor Browser/Tor Browser.app/Contents/MacOS/updater.app/Contents/Resources/English.lproj
76 Tor Browser/Tor Browser.app/Contents/MacOS/updater.app/Contents/Resources
252 Tor Browser/Tor Browser.app/Contents/MacOS/updater.app/Contents/MacOS
336 Tor Browser/Tor Browser.app/Contents/MacOS/updater.app/Contents
336 Tor Browser/Tor Browser.app/Contents/MacOS/updater.app
85908 Tor Browser/Tor Browser.app/Contents/MacOS/Tor/PluggableTransports
97620 Tor Browser/Tor Browser.app/Contents/MacOS/Tor
4 Tor Browser/Tor Browser.app/Contents/MacOS/plugin-container.app/Contents/Resources/English.lproj
4 Tor Browser/Tor Browser.app/Contents/MacOS/plugin-container.app/Contents/Resources
84 Tor Browser/Tor Browser.app/Contents/MacOS/plugin-container.app/Contents/MacOS
96 Tor Browser/Tor Browser.app/Contents/MacOS/plugin-container.app/Contents
96 Tor Browser/Tor Browser.app/Contents/MacOS/plugin-container.app
342196 Tor Browser/Tor Browser.app/Contents/MacOS
408052 Tor Browser/Tor Browser.app/Contents
408052 Tor Browser/Tor Browser.app
36 Tor Browser/.background
409040 Tor Browser/
So far, I must have always used my usual Btrfs, which must have the same sizes as ext4, but yesterday I ran my final browser build in a ramdisk, and we got different HFS:
tb-mine.hfs: Apple HFS Plus version 4 data (mounted) last mounted by: '10.0', created: Sat Jan 1 01:00:00 2000, last modified: Sat Jan 1 00:00:00 2000, last checked: Sat Jan 1 00:00:00 2000, block size: 4096, number of blocks: 112128, free blocks: 7234
tb-richard.hfs: Apple HFS Plus version 4 data (mounted) last mounted by: '10.0', created: Sat Jan 1 01:00:00 2000, last modified: Sat Jan 1 00:00:00 2000, last checked: Sat Jan 1 00:00:00 2000, block size: 4096, number of blocks: 112640, free blocks: 7734
Notice that richard's has 512 more blocks, but only 500 more free blocks.
The content, is the same.