* [LTP] ltp-pan failing
@ 2017-05-12 15:02 Rajesh
2017-05-15 14:49 ` Cyril Hrubis
0 siblings, 1 reply; 3+ messages in thread
From: Rajesh @ 2017-05-12 15:02 UTC (permalink / raw)
To: ltp
Hi,
I'm trying to run the LTP in embedded environment. (Having ramdisk as
files system and n/w shared directory for file storage)
The LTP version is ''ltp-full-20120401'' and ran simple command as below:
# ./ltp-pan -n exp1 -a /tmp/test -x 3 echo hello
And above command failed as:
"pan(exp1): failed to unlock zoo file, errno:9 Bad file descriptor"
Are there any specific configuration to run LTP in embedded environment?
-Regards,
rajesh
^ permalink raw reply [flat|nested] 3+ messages in thread
* [LTP] ltp-pan failing
2017-05-12 15:02 [LTP] ltp-pan failing Rajesh
@ 2017-05-15 14:49 ` Cyril Hrubis
2017-05-23 9:38 ` Rajesh
0 siblings, 1 reply; 3+ messages in thread
From: Cyril Hrubis @ 2017-05-15 14:49 UTC (permalink / raw)
To: ltp
Hi!
> I'm trying to run the LTP in embedded environment. (Having ramdisk as
> files system and n/w shared directory for file storage)
> The LTP version is ''ltp-full-20120401'' and ran simple command as below:
> # ./ltp-pan -n exp1 -a /tmp/test -x 3 echo hello
> And above command failed as:
> "pan(exp1): failed to unlock zoo file, errno:9 Bad file descriptor"
That looks like a problem with possibly unsupported file fcntl() locks on /tmp/test.
> Are there any specific configuration to run LTP in embedded environment?
There shouldn't be any.
--
Cyril Hrubis
chrubis@suse.cz
^ permalink raw reply [flat|nested] 3+ messages in thread
* [LTP] ltp-pan failing
2017-05-15 14:49 ` Cyril Hrubis
@ 2017-05-23 9:38 ` Rajesh
0 siblings, 0 replies; 3+ messages in thread
From: Rajesh @ 2017-05-23 9:38 UTC (permalink / raw)
To: ltp
Thank you for the reply.
The problem was to do with code change I made in ltp-pan.c, to use
vfork() instead of fork().
The child process was closing the active file descriptor and hence
when parent try to access the file descriptor hitting with "Bad file
descriptor".
Issue was fixed by commenting out the statement in child code.
--Regards,
rajesh
On Mon, May 15, 2017 at 8:19 PM, Cyril Hrubis <chrubis@suse.cz> wrote:
> Hi!
>> I'm trying to run the LTP in embedded environment. (Having ramdisk as
>> files system and n/w shared directory for file storage)
>> The LTP version is ''ltp-full-20120401'' and ran simple command as below:
>> # ./ltp-pan -n exp1 -a /tmp/test -x 3 echo hello
>> And above command failed as:
>> "pan(exp1): failed to unlock zoo file, errno:9 Bad file descriptor"
>
> That looks like a problem with possibly unsupported file fcntl() locks on /tmp/test.
>
>> Are there any specific configuration to run LTP in embedded environment?
>
> There shouldn't be any.
>
> --
> Cyril Hrubis
> chrubis@suse.cz
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-05-23 9:38 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-12 15:02 [LTP] ltp-pan failing Rajesh
2017-05-15 14:49 ` Cyril Hrubis
2017-05-23 9:38 ` Rajesh
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox