[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
How to stack libtrivfs-based translators
From: |
Sergiu Ivanov |
Subject: |
How to stack libtrivfs-based translators |
Date: |
Tue, 15 Jul 2008 18:10:02 +0300 |
Hello,
I have written a libtrivfs-based translator (the source code is
supplied in the attachment), however I have problems with stacking it
upon itself. I compile it using the following command:
gcc -Wall -g -ltrivfs -lfshelp mangle.c -o mangle -DDEBUG -DMANGLE
Then I stack it upon an untranslated node foo, which is a text file
containing the text: 'Hello'. I use the following command:
settrans -a foo mangle
If I now try to stack mangle upon foo again, using the command:
settrans -L foo mangle
I receive the following error message:
settrans: foo: Operation not supported
I also tried settrans -aL foo mangle (not sure if this matters), but I
obtain the same result. When I try fsysopts on the translated node foo
in the following way:
fsysopts foo
I get a similar error:
fsysopts: foo: Operation not supported
As you can see from mangle.c, I print a message in a log file
whenever any of libtrivfs callbacks is called. After the two
invocations of settrans, this file still contains the greeting message
only (i.e. "Log session started").
Could you please tell me what I am doing wrong?
scolobb
mangle.c
Description: Text Data
- How to stack libtrivfs-based translators,
Sergiu Ivanov <=