Unix Technical Forum

Re: newfs (mount_mfs) bug

This is a discussion on Re: newfs (mount_mfs) bug within the mailing.openbsd.tech forums, part of the OpenBSD category; --> On 11/24/07, Iruata Souza <iru.muzgo@gmail.com> wrote: > Instead of using /usr/iru/tmp as its mount point it uses /tmp. This ...


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

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-18-2008, 09:34 AM
Ted Unangst
 
Posts: n/a
Default Re: newfs (mount_mfs) bug

On 11/24/07, Iruata Souza <iru.muzgo@gmail.com> wrote:
> Instead of using /usr/iru/tmp as its mount point it uses /tmp. This is
> caused by a call to chdir("/") just before mounting. That was added in
> OpenBSD's rev 1.40 and NetBSD's rev 1.30. By the commit messages and
> code I don't see a point in this call, so I'd be glad if someone knows
> this. Anyway, it was removed in my diff.
>
> The problem is solved using the same technique as other mount
> programs: calling realpath() on the mount point passed and giving the
> results to mount().
> While here, I changed some magic error numbers to their matching errno
> constants.


the diff looks nice. i think the chdir was so that it wouldn't keep
the vnode open for the current directory. does it still work if you
add it back? i think just the realpath fixes are needed.

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 09:56 PM.


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