A non-empty volume name looks much better in Tracker.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29635 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -299,6 +299,9 @@ printf("FUSEVolume::Mount()\n");
|
|||||||
fNodes.Insert(node);
|
fNodes.Insert(node);
|
||||||
fEntries.Insert(entry);
|
fEntries.Insert(entry);
|
||||||
|
|
||||||
|
// init the volume name
|
||||||
|
snprintf(fName, sizeof(fName), "%s Volume", _FileSystem()->GetName());
|
||||||
|
|
||||||
// publish the root node
|
// publish the root node
|
||||||
error = UserlandFS::KernelEmu::publish_vnode(fID, node->id, node,
|
error = UserlandFS::KernelEmu::publish_vnode(fID, node->id, node,
|
||||||
node->type, 0, _FileSystem()->GetNodeCapabilities());
|
node->type, 0, _FileSystem()->GetNodeCapabilities());
|
||||||
@@ -349,7 +352,8 @@ FUSEVolume::ReadFSInfo(fs_info* info)
|
|||||||
info->free_blocks = st.f_bfree;
|
info->free_blocks = st.f_bfree;
|
||||||
info->total_nodes = st.f_files;
|
info->total_nodes = st.f_files;
|
||||||
info->free_nodes = 100; // st.f_favail is ignored by statfs()
|
info->free_nodes = 100; // st.f_favail is ignored by statfs()
|
||||||
info->volume_name[0] = '\0'; // no way to get the name (if any)
|
strlcpy(info->volume_name, fName, sizeof(info->volume_name));
|
||||||
|
// no way to get the real name (if any)
|
||||||
|
|
||||||
return B_OK;
|
return B_OK;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -158,6 +158,7 @@ private:
|
|||||||
ino_t fNextNodeID;
|
ino_t fNextNodeID;
|
||||||
bool fUseNodeIDs; // TODO: Actually read the
|
bool fUseNodeIDs; // TODO: Actually read the
|
||||||
// option!
|
// option!
|
||||||
|
char fName[B_OS_NAME_LENGTH];
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace UserlandFS
|
} // namespace UserlandFS
|
||||||
|
|||||||
Reference in New Issue
Block a user