Commit 7082d7b5 authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

Return a pointer from Server.KernelSettings()

This is less overhead, and fixes the darwin tests that use InitIn.
parent 0155dffe
...@@ -63,13 +63,13 @@ func (ms *Server) SetDebug(dbg bool) { ...@@ -63,13 +63,13 @@ func (ms *Server) SetDebug(dbg bool) {
// KernelSettings returns the Init message from the kernel, so // KernelSettings returns the Init message from the kernel, so
// filesystems can adapt to availability of features of the kernel // filesystems can adapt to availability of features of the kernel
// driver. // driver. The message should not be altered.
func (ms *Server) KernelSettings() InitIn { func (ms *Server) KernelSettings() *InitIn {
ms.reqMu.Lock() ms.reqMu.Lock()
s := ms.kernelSettings s := ms.kernelSettings
ms.reqMu.Unlock() ms.reqMu.Unlock()
return s return &s
} }
const _MAX_NAME_LEN = 20 const _MAX_NAME_LEN = 20
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment