linuxolator: utimes implementation

Scot Hetzel swhetzel at gmail.com
Thu Dec 14 18:59:29 PST 2006


On 12/14/06, Divacky Roman <xdivac02 at stud.fit.vutbr.cz> wrote:
> On Thu, Dec 14, 2006 at 05:33:40AM -0600, Scot Hetzel wrote:
> > While I was running the the tests for ltp-full-20061121, I noticed
> > that the utimes function wasn't implemented in the linuxolator.
> >
> > I looked up the man page and found that it was similar to the utime
> > function, except that it allows a program to set an inode down to the
> > microsecond.
> >
> > Merging together the linux_utime and freebsd32_utimes functions, I was
> > able to create the linux_utimes function.
>
> what about this patch instead (only relevant part):
>
I'm able to compile the linux module with this patch, and I no longer
see "* utimes not implemented" when running the ltp testcases.

The attached patch to ltp-20061121 implements testcases for utimes
(based on the utime testcases).  It currently is failing the utimes04,
and utimes05 testcases:

utimes04    1  FAIL  :  tmp_file access and modification times usec not set
utimes05    1  FAIL  :  tmp_file access and modification times usec not set

This might be because I'm not using the right field from the stat
function to get the access and modification times for the usec in
these testcases.  If I comment out the code that checks the usec, then
these two tests pass.

Scot
--
DISCLAIMER:
No electrons were mamed while sending this message. Only slightly bruised.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ltp-utimes-patch
Type: text/x-diff
Size: 64369 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-emulation/attachments/20061215/6755a2b6/ltp-utimes-patch.bin


More information about the freebsd-emulation mailing list