align_pread

Using TestDisk to undelete files
Forum rules
When asking for technical support:
- Search for posts on the same topic before posting a new question.
- Give clear, specific information in the title of your post.
- Include as many details as you can, MOST POSTS WILL GET ONLY ONE OR TWO ANSWERS.
- Post a follow up with a "Thank you" or "This worked!"
- When you learn something, use that knowledge to HELP ANOTHER USER LATER.
Before posting, please read https://www.cgsecurity.org/testdisk.pdf
Locked
Message
Author
mesajflaviu
Posts: 37
Joined: 12 Sep 2019, 19:54

align_pread

#1 Post by mesajflaviu »

Hello. I have a little question: function align_pread from alignio.h

Code: Select all

static int align_pread(int(*fnct_pread)(disk_t *disk_car, void *buf, const unsigned int count, const uint64_t offset),
	disk_t* disk_car, void*buf, const unsigned int count, const uint64_t offset)
{
...
...
is designed to run on FAT32/EXFAT only, or could be called on NTFS file system ? It could me a lot if I would know that ... maybe Grenier or somebody would find a little time to tell me :)

Thanks much.

mesajflaviu
Posts: 37
Joined: 12 Sep 2019, 19:54

Re: align_pread

#2 Post by mesajflaviu »

Why I am asking that ? Because this function is called somehow from ntfs library:

Code: Select all

// device.c file

s64 ntfs_pread(struct ntfs_device* dev, const s64 pos, s64 count, void* b)
{
...
...
dops = dev->d_ops;
....

br = dops->pread(dev, (char*)b + total, count, pos + total);

and this dops->pread is calling align_pread function, which is from TestDisk library ...

Locked