vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Hello tech, I've found a strange behavior trying to mount_mfs with swap as the special file. The situation is pasted here: http://www.tip9ug.jp/who/iru/bug_mfs That shows mount_mfs hanging untill I interrupt it (it would hang forever). 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. Diff: http://www.tip9ug.jp/who/iru/diff/newfs.diff thanks, iru |