Kazuhiro Takenaka | 1 Dec 2009 11:03
Picon

Re: How to backup and restore parameters of NTFS

Hi Jean-Pierre,

> What is the purpose of Procedure3 ?

The reason I want to backup by a file unit is to do
incrementtal backup.

There are two methods to do incremental backup a filesystem.

Method1:
    At first time, Make backup data that consist of one object.
    The object is a full dump of the target filesystem.
    "full" means that the dump contains all files on the target filesytem.

    After second time, Pickup and archive the files changed from the
    previous backup.

Method2:
    At first time, Make backup data that consist of two objects.

    The first object is a empty dump of the target filesystem.
    "empty" means that the dump contains no file. It contains
    only the structure of the contarget filesytem.

    The second object is an archive file that consists of all
    files of the target filesystem.

    After second time, Pickup and archive the files changed from the
    previous backup.

(Continue reading)

Jean-Pierre André | 1 Dec 2009 21:04
Picon

Re: How to backup and restore parameters of NTFS

Hi,

Kazuhiro Takenaka wrote:
> Hi Jean-Pierre,
>
>    
>> What is the purpose of Procedure3 ?
>>      
> The reason I want to backup by a file unit is to do
> incrementtal backup.
>
> There are two methods to do incremental backup a filesystem.
>
> Method1:
>      At first time, Make backup data that consist of one object.
>      The object is a full dump of the target filesystem.
>      "full" means that the dump contains all files on the target filesytem.
>
>      After second time, Pickup and archive the files changed from the
>      previous backup.
>
> Method2:
>      At first time, Make backup data that consist of two objects.
>
>      The first object is a empty dump of the target filesystem.
>      "empty" means that the dump contains no file. It contains
>      only the structure of the contarget filesytem.
>
>      The second object is an archive file that consists of all
>      files of the target filesystem.
(Continue reading)

Kazuhiro Takenaka | 2 Dec 2009 10:23
Picon

Re: How to backup and restore parameters of NTFS

Hi,

Jean-Pierre wrote:
> ntfsinfo will not be very useful for restoring the
> attributes.

I plan to try to pick up requisite parameters from output of
"ntfsinfo --mft" and use them as arguments for mkntfs.

Does what you said mean that ntfsinfo provides insufficient
infomation to do this?
Or the format of ouput of ntfsinfo is hard to parse?

> ntfs.c can only copy to NTFS. If you want to save
> to non-NTFS you will have to define how you store
> the attributes.

I intended to copy files into NTFS for the moment.

> By the way I have just added the copy of object ids
> to ntfscp, but you need to use the beta test version
> of advanced ntfs-3g to benefit from object id copying.

Thanks for informing of this.
I will try it.

------------------------------------------------------------------------------
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
(Continue reading)

Jean-Pierre André | 2 Dec 2009 20:41
Picon

Re: How to backup and restore parameters of NTFS

Hi,

Kazuhiro Takenaka wrote:
> Hi,
>
> Jean-Pierre wrote:
>    
>> ntfsinfo will not be very useful for restoring the
>> attributes.
>>      
> I plan to try to pick up requisite parameters from output of
> "ntfsinfo --mft" and use them as arguments for mkntfs.
>
> Does what you said mean that ntfsinfo provides insufficient
> infomation to do this?
> Or the format of ouput of ntfsinfo is hard to parse

I just meant that ntfsinfo is "one way" : you can
display the current attributes, but you need something
else to set them.

Regards

Jean-Pierre

------------------------------------------------------------------------------
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
(Continue reading)

Kazuhiro Takenaka | 3 Dec 2009 06:04
Picon

Re: How to backup and restore parameters of NTFS

Hi,

>> I plan to try to pick up requisite parameters from output of
>> "ntfsinfo --mft" and use them as arguments for mkntfs.
>>
>> Does what you said mean that ntfsinfo provides insufficient
>> infomation to do this?
>> Or the format of ouput of ntfsinfo is hard to parse
> 
> I just meant that ntfsinfo is "one way" : you can
> display the current attributes, but you need something
> else to set them.

I understood it.

Thanks for your much help

Sincerely Yours.
--

-- 
Kazuhiro Takenaka
Open Source Business Unit
NTT DATA INTELLILINK CORPORATION
email Kazuhiro Takenaka <takenakak@...>
URL   http://www.intellilink.co.jp/

------------------------------------------------------------------------------
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
(Continue reading)

Favicon
Gravatar

compiling ntfs-3g with -Werror

Hi everybody,

i'm a member of the openSUSE community and took on the task to updtae  
our ntfs-3g package to the currently latest version 2009.11.15.

We're using the -Werror compile switch and this leads to a multitude  
of build failures, many of which we had with 2009.04 release already,  
some new ones and some I seem not to get around with.

for your reference I attach the current patch we have (most of the  
changes were already the same for the 2009.04 release, so far new are  
all changes in secaudit.[ch]).

Nevertheless, so far I get stuck with the build error:

*********************

gcc -DHAVE_CONFIG_H -I. -I..     -I../include/ntfs-3g  
-fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector  
-funwind-tables -fasynchronous-unwind-tables -Wformat  
-Wformat-security -W -Wno-sign-compare -Werror -Wall -MT  
ntfs_3g_secaudit-secaudit.o -MD -MP -MF  
.deps/ntfs_3g_secaudit-secaudit.Tpo -c -o ntfs_3g_secaudit-secaudit.o  
`test -f 'secaudit.c' || echo './'`secaudit.c
secaudit.c:1813: error: conflicting types for 'relay_find_usid'
secaudit.h:725: note: previous declaration of 'relay_find_usid' was here
secaudit.c:1824: error: conflicting types for 'relay_find_gsid'
secaudit.h:727: note: previous declaration of 'relay_find_gsid' was here
secaudit.c:1835: error: conflicting types for 'relay_find_user'
secaudit.h:729: note: previous declaration of 'relay_find_user' was here
(Continue reading)

Jean-Pierre André | 9 Dec 2009 16:23
Picon

Re: compiling ntfs-3g with -Werror

Hi Dominique,

First, thank you for making this port to OpenSuse,
I hope ntfs-3g will meet your expectations.

I have no immediate explanation to the errors you
get. There seems to be a problem with the "const"
qualifier in function prototypes. Just an example on
a function unlikely to conflict with some library :

secaudit.c:6618: error: conflicting types for 'dumpalloc'
secaudit.h:714: note: previous declaration of 'dumpalloc' was here
The mentioned lines are (in the order they appear).
void dumpalloc(const char*);
void dumpalloc(const char *txt)

I really do not see what the conflict can be.

The usual compilation option are :

gcc -DHAVE_CONFIG_H -I. -I..     -I../include/ntfs-3g -g -O2 -Wall -MT 
ntfs_3g_secaudit-secaudit.o -MD -MP -MF 
.deps/ntfs_3g_secaudit-secaudit.Tpo -c -o ntfs_3g_secaudit-secaudit.o 
`test -f 'secaudit.c' || echo './'`secaudit.c

When I want to exhibit more warnings, I use :

gcc -DHAVE_CONFIG_H -I. -I..     -I../include/ntfs-3g -g -O2 -Wall -W -Wall
-Waggregate-return -Wbad-function-cast -Wcast-align -Wcast-qual
-Wdisabled-optimization -Wdiv-by-zero -Wfloat-equal -Winline
(Continue reading)

Jean-Pierre André | 9 Dec 2009 16:32
Picon

Re: compiling ntfs-3g with -Werror

Hi again,

I just see you have made the following change :

-	ins_len = mbsrtowcs(NULL, (const char **)&s, 0,&mbstate);
+	ins_len = mbsrtowcs(NULL, (__const char **)&s, 0,&mbstate);

Does that mean that the standard const keyword
causes some itch to gcc in your environment ?

What does that mean ?

If so, just redefine const as __const, but....

Regards

Jean-Pierre

Jean-Pierre André wrote:
> Hi Dominique,
>
> First, thank you for making this port to OpenSuse,
> I hope ntfs-3g will meet your expectations.
>
> I have no immediate explanation to the errors you
> get. There seems to be a problem with the "const"
> qualifier in function prototypes. Just an example on
> a function unlikely to conflict with some library :
>
> secaudit.c:6618: error: conflicting types for 'dumpalloc'
(Continue reading)

Favicon
Gravatar

Re: compiling ntfs-3g with -Werror

Quoting Jean-Pierre André <jean-pierre.andre@...>:

> Hi Dominique,
>
> First, thank you for making this port to OpenSuse,
> I hope ntfs-3g will meet your expectations.
>
> I have no immediate explanation to the errors you
> get. There seems to be a problem with the "const"
> qualifier in function prototypes. Just an example on
> a function unlikely to conflict with some library :
>
> secaudit.c:6618: error: conflicting types for 'dumpalloc'
> secaudit.h:714: note: previous declaration of 'dumpalloc' was here
> The mentioned lines are (in the order they appear).
> void dumpalloc(const char*);
> void dumpalloc(const char *txt)
>
> I really do not see what the conflict can be.
>
> The usual compilation option are :
>
> gcc -DHAVE_CONFIG_H -I. -I..     -I../include/ntfs-3g -g -O2 -Wall  
> -MT ntfs_3g_secaudit-secaudit.o -MD -MP -MF  
> .deps/ntfs_3g_secaudit-secaudit.Tpo -c -o  
> ntfs_3g_secaudit-secaudit.o `test -f 'secaudit.c' || echo  
> './'`secaudit.c
>
> When I want to exhibit more warnings, I use :
>
(Continue reading)

Favicon
Gravatar

Re: compiling ntfs-3g with -Werror

Quoting Jean-Pierre André <jean-pierre.andre@...>:

Jean-Pierre,

The 'actual' source of the problem is autoconf that was used to  
publish the tarball:

AC_C_CONST is 'buggy' in this version and causes this error.

See also http://www.mail-archive.com/bug-autoconf-mXXj517/zsQ <at> public.gmane.org/msg00825.html.

I'm fiddling with autogen.sh to re-create the configure script during  
build now (for some weird reason it does not work in my chroot env,  
but it does work in my normal system... up to some nice tracing).

Thanks anyhow for the pointer! That was a good help.

Dominique

------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev

Gmane