nfs setup question
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}) = 0NULL 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
Quoted 30 lines · Hollis Blanchard
Quoted 17 lines · 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/TIMER.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 argumentQuoted 8 lines
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...
Signature · 13 lines
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 [email protected] https://lists.sourceforge.net/lists/listinfo/kvm-ppc-devel