Kernel KVM-PPC virtualization development
 help / color / mirror / Atom feed
* Re: [kvm-ppc-devel] nfs setup question
@ 2008-04-04 10:58 Christian Ehrhardt
  0 siblings, 0 replies; only message in thread
From: Christian Ehrhardt @ 2008-04-04 10:58 UTC (permalink / raw)
  To: kvm-ppc

I still had the issues after correcting my time.
But some debugging brought the (workaround) solution - and to use oprfile this is needed because it touches files, touch would return with !=0 and oprofile aborts

The issue:
bash-3.00# touch dings
touch: setting times of `dings': Invalid argument

Stracing that I found that it returns EINVAL when passing a NULL pointer, which is done when you want to update all times atime, mtime, ctime.
	utime("dings", NULL)                    = -1 EINVAL (Invalid argument)

touch -a
and
touch -m
work because they use a structure to specify what to update
	utimes("dings", {1207307371, 0})        = 0

NULL means update all with the time of now
Maybe I can avoid that by aliasing time to time -t `some trick` to get a sturcture instead of null

Ok with the following alias touch works, it is doing the same but does not have a null pointer
	alias touch='touch -t `date +"%Y%m%d%H%M.%S"`'

use this in your alias definitions
You could also put it in the opcontrol script to prevent any issues out of alias inheritance

P.S. I added kvmppc-devel just in case anyone else has the same issues - that way search engines will find it on the mail archive

Hollis Blanchard wrote:
> On Wednesday 02 April 2008 07:36:31 Christian Ehrhardt wrote:
>> Hi,
>> while USB is coming anyway I wanted to ask if you had similar issues with
>> your nfs. I sometimes see a "Invalid argument" to a lot of accesses that
>> fail that way - I have the feeling this is related to touching the date of
>> a file. I posted a example below, and I can cat/vi/... this file (binary
>> content)
>>
>> bash-3.00# ll
>> /var/lib/oprofile/samples/current/\{root\}/bin/bash/\{dep\}/\{root\}/bin/ba
>> sh/TIMER.0.0.all.all.all -rw-r--r--  1 root root 2680 Apr  2  2008
>> /var/lib/oprofile/samples/current/{root}/bin/bash/{dep}/{root}/bin/bash/TIM
>> ER.0.0.all.all.all bash-3.00# touch
>> /var/lib/oprofile/samples/current/\{root\}/bin/bash/\{dep\}/\{root\}/bin/ba
>> sh/TIMER.0.0.all.all.all touch: setting times of
>> `/var/lib/oprofile/samples/current/{root}/bin/bash/{dep}/{root}/bin/bash/TI
>> MER.0.0.all.all.all': Invalid argument
>>
>> I'll need to switch to usb root for the PAC anyway maybe that solves this.
>>
>> Other topic:
>> I have build&installed  oprofile which was a mess because it needed a
>> different built binutils and which and ... I have a new ppcbuildroot with
>> all of that but I changed to ppc4xxFP for all that. So I will create a new
>> sequoia only dir on 440dev once I'm finished and able to provide you all
>> that binaries.
> 
> What is the system time on your Sequoia? I don't think RTC works for us yet, 
> so it's probably 1970...
> 

-- 

Grüsse / regards, 
Christian Ehrhardt
IBM Linux Technology Center, Open Virtualization

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
kvm-ppc-devel mailing list
kvm-ppc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kvm-ppc-devel

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-04-04 10:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-04 10:58 [kvm-ppc-devel] nfs setup question Christian Ehrhardt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox