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:
Ingo Weinhold
2009-03-21 21:09:29 +00:00
parent fe24dc3df4
commit be07036291
2 changed files with 6 additions and 1 deletions
@@ -299,6 +299,9 @@ printf("FUSEVolume::Mount()\n");
fNodes.Insert(node);
fEntries.Insert(entry);
// init the volume name
snprintf(fName, sizeof(fName), "%s Volume", _FileSystem()->GetName());
// publish the root node
error = UserlandFS::KernelEmu::publish_vnode(fID, node->id, node,
node->type, 0, _FileSystem()->GetNodeCapabilities());
@@ -349,7 +352,8 @@ FUSEVolume::ReadFSInfo(fs_info* info)
info->free_blocks = st.f_bfree;
info->total_nodes = st.f_files;
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;
}
@@ -158,6 +158,7 @@ private:
ino_t fNextNodeID;
bool fUseNodeIDs; // TODO: Actually read the
// option!
char fName[B_OS_NAME_LENGTH];
};
} // namespace UserlandFS