Unix Technical Forum

Re: more re: nfs openbsd setattr bug

This is a discussion on Re: more re: nfs openbsd setattr bug within the mailing.openbsd.tech forums, part of the OpenBSD category; --> I've run the little test script and it seemed to be fixed after I had patched my server to ...


Go Back   Unix Technical Forum > Unix Operating Systems > OpenBSD > mailing.openbsd.tech

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-18-2008, 08:27 AM
rick@snowhite.cis.uoguelph.ca
 
Posts: n/a
Default Re: more re: nfs openbsd setattr bug

I've run the little test script and it seemed to be fixed after I had
patched my server to set VA_UTIMES_NULL when setting to server time(s).

So, I think that your diagnosis was correct, but your patch didn't quite
fix it. Although I haven't tested it, here is the equivalent patch to
what I did, for OpenBSD3.8. Maybe you can try this?

Good luck with it, rick
ps: I tested using a Linux2.6 Fedora core 4 client.
*** nfsm_subs.h.orig Tue Mar 28 11:16:50 2006
--- nfsm_subs.h Tue Mar 28 11:18:31 2006
***************
*** 472,477 ****
--- 472,478 ----
break; \
case NFSV3SATTRTIME_TOSERVER: \
getnanotime(&(a)->va_atime); \
+ (a)->va_vaflags |= VA_UTIMES_NULL; \
break; \
}; \
nfsm_dissect(tl, u_int32_t *, NFSX_UNSIGNED); \
***************
*** 482,487 ****
--- 483,489 ----
break; \
case NFSV3SATTRTIME_TOSERVER: \
getnanotime(&(a)->va_mtime); \
+ (a)->va_vaflags |= VA_UTIMES_NULL; \
break; \
}; }

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 10:05 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com