nfs4: Multiple style fixes
This commit is contained in:
@@ -563,8 +563,8 @@ Connection::SetTo(Connection **_connection, int socket,
|
|||||||
status_t
|
status_t
|
||||||
Connection::Connect()
|
Connection::Connect()
|
||||||
{
|
{
|
||||||
const sockaddr& address =
|
const sockaddr& address
|
||||||
*reinterpret_cast<const sockaddr*>(&fPeerAddress);
|
= *reinterpret_cast<const sockaddr*>(&fPeerAddress);
|
||||||
|
|
||||||
switch (fPeerAddress.fProtocol) {
|
switch (fPeerAddress.fProtocol) {
|
||||||
case IPPROTO_TCP:
|
case IPPROTO_TCP:
|
||||||
|
|||||||
@@ -59,8 +59,8 @@ FileInfo::CreateName(const char* dirPath, const char* name)
|
|||||||
return B_NO_MEMORY;
|
return B_NO_MEMORY;
|
||||||
|
|
||||||
if (dirPath != NULL) {
|
if (dirPath != NULL) {
|
||||||
char* path = reinterpret_cast<char*>(malloc(strlen(name) + 2 +
|
char* path = reinterpret_cast<char*>(malloc(strlen(name) + 2
|
||||||
strlen(dirPath)));
|
+ strlen(dirPath)));
|
||||||
if (path == NULL)
|
if (path == NULL)
|
||||||
return B_NO_MEMORY;
|
return B_NO_MEMORY;
|
||||||
|
|
||||||
|
|||||||
@@ -51,6 +51,7 @@ IdMap::InitStatus()
|
|||||||
return fInitStatus;
|
return fInitStatus;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
extern IdMap* gIdMapper;
|
extern IdMap* gIdMapper;
|
||||||
extern mutex gIdMapperLock;
|
extern mutex gIdMapperLock;
|
||||||
|
|
||||||
|
|||||||
@@ -294,7 +294,7 @@ OpenState::Close()
|
|||||||
// recognize retried CLOSE requests so we just assume that BAD_STATEID
|
// recognize retried CLOSE requests so we just assume that BAD_STATEID
|
||||||
// on CLOSE request is just a result of retransmission.
|
// on CLOSE request is just a result of retransmission.
|
||||||
if (reply.NFS4Error() == NFS4ERR_BAD_STATEID) {
|
if (reply.NFS4Error() == NFS4ERR_BAD_STATEID) {
|
||||||
fFileSystem->OpenOwnerSequenceUnlock(sequence);
|
fFileSystem->OpenOwnerSequenceUnlock(sequence);
|
||||||
return B_OK;
|
return B_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -716,7 +716,7 @@ get_new_vnode(fs_volume* volume, ino_t id, VnodeToInode** _vti)
|
|||||||
return B_OK;
|
return B_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
return get_vnode(volume, id, reinterpret_cast<void**>(_vti)); //_OK;
|
return get_vnode(volume, id, reinterpret_cast<void**>(_vti));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user