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

Cluster address printed for cluster zero is wrong #30

Open
aj-bagwell opened this issue Dec 16, 2021 · 0 comments · May be fixed by #31
Open

Cluster address printed for cluster zero is wrong #30

aj-bagwell opened this issue Dec 16, 2021 · 0 comments · May be fixed by #31

Comments

@aj-bagwell
Copy link

I want to create a file system with a file at a specific point, so I was using fcat -@ 0 to find the base address of the clusters then some simple maths (data_addr - base_addr)/cluster_size to find the cluster that points to the data.

I noticed that it worked in 1.05 and not in v1.1.0 it looks like change 530b663 to support larger disks broke it.

1.0.5:

Cluster 0 address:
47104 (000000000000b800)
Next cluster:
FAT1: 4294967295 (ffffffff)
FAT2: 4294967295 (ffffffff)
Chain size: 1 (2048 / 2K)
Chain is contiguous

1.1.0:

Cluster 0 address:
8796093069312 (000008000000b800)
Next cluster:
FAT1: 4294967295 (ffffffff)
FAT2: 4294967295 (ffffffff)
Chain size: 1 (2048 / 2K)
Chain is contiguous
@aj-bagwell aj-bagwell linked a pull request Dec 16, 2021 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant