In message <[EMAIL PROTECTED]>, Nate Lawson wri
tes:
>On Sat, 14 Dec 2002, Michael Ranner wrote:
>> Hi there!
>> 
>> I have implemented the setattr(), lsetattr() and fsetattr() syscalls for
>> 4.7 and 5.0. You can review my code on http://www.ranner.jawa.at/freebsd.php.
>> 
>> Comments and suggestions are welcome.
>
>I don't mean to be rude but I doubt the utility of this whole
>plan.  dump/restore are done on disk devices which are at least an order
>of magnitude slower than a syscall boundary crossing.  Going from 4
>syscalls to 1 can't make a bit of difference in restore(8) performance.

You are wrong about restore:  restore is done on a mounted filesystem.

>So why is this faster?  Something is likely slowing namei() down.  

Because 1 syscall and 2 namei calls are faster than 4 syscalls and
four namei calls.

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
[EMAIL PROTECTED]         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to