Page 1 of 1

align_pread

Posted: 08 Apr 2020, 10:41
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.

Re: align_pread

Posted: 09 Apr 2020, 17:30
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 ...