Search found 10 matches

by robertchen
Thu Feb 25, 2010 2:55 am
Forum: Bug reports
Topic: [ntfs] <unknown> label is assigned after recovering
Replies: 5
Views: 12450

Re: [ntfs] <unknown> label is assigned after recovering

Is it because the default label string becomes "<unknown>" in newer versions ? In get_devinfo () in devinfo.c (v0.6.6), we have the following modification: snprintf(outdev->label, sizeof(outdev->label), ""); snprintf(outdev->uuid, sizeof(outdev->uuid), ""); snprintf(outdev->fsname, sizeof(outdev->fs...
by robertchen
Wed Feb 24, 2010 10:45 am
Forum: Bug reports
Topic: [ntfs] <unknown> label is assigned after recovering
Replies: 5
Views: 12450

[ntfs] <unknown> label is assigned after recovering

Version: fsarchiver 0.6.6 Issue: Use fsarchiver to savefs then restfs a windows NTFS partition. Before restoring, the partition is not labeled (partition with empty label will be show "Local Disk" in Windows). After recovering, the partition is labeled "<unknown>". This is strange. Earlier verisions...
by robertchen
Mon Nov 09, 2009 12:25 pm
Forum: General questions
Topic: Does fsarchiver save Windows' POSIX ACL attributes ?
Replies: 1
Views: 2443

Does fsarchiver save Windows' POSIX ACL attributes ?

In fsarchiver 0.6.1, it seems createar_item_winattr() in create.c doesn't save some extended attributes: "system.posix_acl_access" "system.posix_acl_default" , which NTFS-3G AR supports now. Suppose I have a pure windows NTFS partition in my disk ("pure" means all data in the NTFS partition is never...
by robertchen
Mon Nov 09, 2009 12:02 pm
Forum: Bug reports
Topic: Cannot allocate memory error when calling lgetxattr
Replies: 15
Views: 12571

Re: Cannot allocate memory error when calling lgetxattr

This version is ok.
No error message ever appears in my test.
by robertchen
Thu Oct 29, 2009 4:32 am
Forum: Bug reports
Topic: Cannot allocate memory error when calling lgetxattr
Replies: 15
Views: 12571

Re: Cannot allocate memory error when calling lgetxattr

We should add ret=-1 . if ((attrsize=lgetxattr(fullpath, winattr[i], NULL, 0)) < 0) // get the size of the attribute { if (errno!=ENOATTR) { sysprintf(" winattr:lgetxattr(%s,%s): returned negative attribute size\n", relpath, winattr[i]); // output if there are any other error ret=-1; } continue; // ...
by robertchen
Mon Oct 26, 2009 12:38 pm
Forum: Bug reports
Topic: Cannot allocate memory error when calling lgetxattr
Replies: 15
Views: 12571

Re: Cannot allocate memory error when calling lgetxattr

Then I add the following code, between the two calls of lgetxattr(), to fsarchiver 0.6.2-test1. if( attrsize < 0 ) { if( errno!=ENOATTR ) // ENOATTR=ENODATA=61 { sysprintf(" Failed to get attrsize in winattr:lgetxattr(%s,%s)\n", relpath, winattr[i]); // output if there are any other error } continue...
by robertchen
Mon Oct 26, 2009 6:24 am
Forum: Bug reports
Topic: Cannot allocate memory error when calling lgetxattr
Replies: 15
Views: 12571

Re: Cannot allocate memory error when calling lgetxattr

I want to reproduce the problem outside of fsarchiver, but no memory error in my log was found yet as expected. (Maybe I should try more times). Go back to see create.c code. In createar_item_winattr (), the author makes a first call of lgetxattr() to get the attrsize, allocates that size +1 of memo...
by robertchen
Fri Oct 23, 2009 11:00 am
Forum: Bug reports
Topic: Cannot allocate memory error when calling lgetxattr
Replies: 15
Views: 12571

Re: Cannot allocate memory error when calling lgetxattr

The problem is the same in fsarchiver 0.6.2-test1. I've tried ntfs-3g 2009.4.4AR.19 and ntfs-3g 2009.4.4AR.21. My OS is Ubuntu 9.04 (kernel 2.6.28-15-generic). The problem doesn't occur on the same files. The bug may be inside the system call lgetxattr(). "Cannot allocate memory" doesn't necessarily...
by robertchen
Tue Oct 13, 2009 4:14 am
Forum: Bug reports
Topic: Cannot allocate memory error when calling lgetxattr
Replies: 15
Views: 12571

Re: Cannot allocate memory error when calling lgetxattr

I update to fsarchiver-0.6.1 and the same problem still often occurs. I use -z2 compression leve and only one (default) compression thread. My build option: ./configure --prefix=/home/robert/soft_output/fsarchiver061 --disable-lzma --disable-lzo --disable-crypto Just before running, I show /proc/mem...
by robertchen
Thu Oct 08, 2009 10:10 am
Forum: Bug reports
Topic: Cannot allocate memory error when calling lgetxattr
Replies: 15
Views: 12571

Cannot allocate memory error when calling lgetxattr

My /dev/sdb2 is a NTFS partition (usage 1.2G / total 4G) in my flash storage device. I use fsarchiver (0.5.8) to backup /dev/sdb2. Sometimes the following errors occurs. It seems fsarchiver needs a lot of memory. However, before running fsarchiver I still have more than 1 G free memory, and running ...