From: Christian Ehrhardt <ehrhardt@linux.vnet.ibm.com>
To: kvm-ppc@vger.kernel.org
Subject: Re: [kvm-ppc-devel] nfs setup question
Date: Fri, 04 Apr 2008 10:58:18 +0000 [thread overview]
Message-ID: <47F609CA.9030403@linux.vnet.ibm.com> (raw)
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
reply other threads:[~2008-04-04 10:58 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=47F609CA.9030403@linux.vnet.ibm.com \
--to=ehrhardt@linux.vnet.ibm.com \
--cc=kvm-ppc@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.