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

ntfs3g: add darwin build #117132

Merged
merged 1 commit into from
Mar 21, 2021
Merged

Conversation

midchildan
Copy link
Member

Motivation for this change

Provide darwin package for ntfs-3g.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

Confirmed that filesystem creation, mounts, reads, and writes work on both macOS and NixOS.

touch ntfs.imgnix run nixpkgs.coreutils -c truncate --size=10M ntfs.imgresult/bin/mkntfs --force --fast --label nixpkgs ntfs.img
ntfs.img is not a block device.
mkntfs forced anyway.
The sector size was not specified for ntfs.img and it could not be obtained automatically.  It has been set to 512 bytes.
The partition start sector was not specified for ntfs.img and it could not be obtained automatically.  It has been set to 0.
The number of sectors per track was not specified for ntfs.img and it could not be obtained automatically.  It has been set to 0.
The number of heads was not specified for ntfs.img and it could not be obtained automatically.  It has been set to 0.
Cluster size has been automatically set to 4096 bytes.
To boot from a device, Windows needs the 'partition start sector', the 'sectors per track' and the 'number of heads' to be set.
Windows will not be able to boot from this device.
Creating NTFS volume structures.
mkntfs completed successfully. Have a nice day.result/bin/ntfsfix --no-action ntfs.img
Mounting volume... OK
Processing of $MFT and $MFTMirr completed successfully.
Checking the alternate boot sector... OK
NTFS volume version is 3.1.
NTFS partition ntfs.img was processed successfully.result/bin/ntfslabel ntfs.img
nixpkgsmkdir mntresult/bin/mount.ntfs ntfs.img mntcd mntecho hi > hi.txtcat hi.txt
hicd ..umount mntfile ntfs.img
ntfs.img: DOS/MBR boot sector, code offset 0x52+2, OEM-ID "NTFS    ", sectors/cluster 8, Media descriptor 0xf8, sectors/track 0, dos < 4.0 BootSector (0x80), FAT (1Y bit by descriptor); NTFS, sectors 20479, $MFT start cluster 4, $MFTMirror start cluster 1279, bytes/RecordSegment 2^(-1*246), clusters/index block 1, serial number 02f9b8743065cc656

@ofborg ofborg bot added 6.topic: darwin Running or building packages on Darwin 8.has: package (new) This PR adds a new package labels Mar 21, 2021
@ofborg ofborg bot requested a review from dezgeg March 21, 2021 17:59
@midchildan midchildan changed the base branch from master to staging March 21, 2021 18:41
@midchildan
Copy link
Member Author

Switched from master to staging.

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

Successfully merging this pull request may close these issues.

2 participants