From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christian Ehrhardt Date: Fri, 04 Apr 2008 10:58:18 +0000 Subject: Re: [kvm-ppc-devel] nfs setup question Message-Id: <47F609CA.9030403@linux.vnet.ibm.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: kvm-ppc@vger.kernel.org I still had the issues after correcting my time. But some debugging brought the (workaround) solution - and to use oprfile t= his is needed because it touches files, touch would return with !=3D0 and o= profile 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, w= hich is done when you want to update all times atime, mtime, ctime. utime("dings", NULL) =3D -1 EINVAL (Invalid argument) touch -a and touch -m work because they use a structure to specify what to update utimes("dings", {1207307371, 0}) =3D 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 st= urcture instead of null Ok with the following alias touch works, it is doing the same but does not = have a null pointer alias touch=3D'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 - th= at 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 thi= s. >> >> 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 n= ew >> sequoia only dir on 440dev once I'm finished and able to provide you all >> that binaries. >=20 > What is the system time on your Sequoia? I don't think RTC works for us y= et,=20 > so it's probably 1970... >=20 --=20 Gr=FCsse / regards,=20 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