Search found 37 matches

by mesajflaviu
09 Apr 2020, 17:30
Forum: File undelete
Topic: align_pread
Replies: 1
Views: 9153

Re: align_pread

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

// 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 ...
by mesajflaviu
08 Apr 2020, 10:41
Forum: File undelete
Topic: align_pread
Replies: 1
Views: 9153

align_pread

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

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 ...
by mesajflaviu
20 Feb 2020, 19:05
Forum: File undelete
Topic: NTFS signature
Replies: 1
Views: 9656

Re: NTFS signature

Any hint will be very useful to me :) ...
by mesajflaviu
16 Feb 2020, 09:26
Forum: File undelete
Topic: NTFS signature
Replies: 1
Views: 9656

NTFS signature

Hello again. I am trying to understand why NTFS code is not working fine on windows OS.

I made debug on bootsect.c in ntfs library, used by TestDisk. And the code is running on

BOOL ntfs_boot_sector_is_ntfs(NTFS_BOOT_SECTOR* b)

function. is logging:
ntfs_log_debug("Checking OEMid, NTFS ...
by mesajflaviu
28 Jan 2020, 13:22
Forum: File undelete
Topic: memory leak on ntfs volume
Replies: 2
Views: 9373

Re: memory leak on ntfs volume

Thank you Grenier !!! To see how important is your words, I can say: I found/solved memory leaks. At least, I guess so. Might be a little bug, I am not sure, you can check yourself. Here was the problem:
In alignio.h (sorry, not alignio.c ), in function align_pread

static int align_pread(int ...
by mesajflaviu
22 Jan 2020, 13:46
Forum: File undelete
Topic: memory leak on ntfs volume
Replies: 2
Views: 9373

memory leak on ntfs volume

I ran the code in the debugger, tested on NTFS device , by calling ntfs_undelete_part function. In the step by step debugging, I arrived on volume.c file, at line:

br = ntfs_pread(dev, 0, sizeof(NTFS_BOOT_SECTOR), bs);

if I call this function, I got the following memory leak:

Dumping objects ...
by mesajflaviu
21 Jan 2020, 09:59
Forum: File undelete
Topic: NTFS signature is missing
Replies: 7
Views: 12825

Re: NTFS signature is missing

Plus, going the code by here, I got memory leaks:

Code: Select all

Detected memory leaks!
Dumping objects ->
{26571} normal block at 0x03FB87D0, 65536 bytes long.
 Data: < R NTFS         > EB 52 90 4E 54 46 53 20 20 20 20 00 02 08 00 00 
Object dump complete.
by mesajflaviu
21 Jan 2020, 09:49
Forum: File undelete
Topic: NTFS signature is missing
Replies: 7
Views: 12825

Re: NTFS signature is missing

On a test stick, oem_id has 8804685062176 value. Where oem_id is part of:

typedef struct {
u8 jump[3]; /* Irrelevant (jump to boot up code).*/
le64 oem_id; /* Magic "NTFS ". */
/*0x0b*/BIOS_PARAMETER_BLOCK bpb; /* See BIOS_PARAMETER_BLOCK. */
u8 physical_drive; /* 0x00 floppy, 0x80 hard disk ...
by mesajflaviu
21 Jan 2020, 09:16
Forum: File undelete
Topic: NTFS signature is missing
Replies: 7
Views: 12825

Re: NTFS signature is missing

I am thinking that this issue is not necessary an error though ... right ?
by mesajflaviu
21 Jan 2020, 08:46
Forum: File undelete
Topic: NTFS signature is missing
Replies: 7
Views: 12825

Re: NTFS signature is missing

I guess is the first case, because this is happen in two different USB sticks formatted as EXFAT.