/haiku/src/bin/ |
H A D | mount.c | 36 const char *mountPoint; in main() local 79 mountPoint = argv[0]; in main() 81 if (mountPoint == NULL) in main() 84 if (stat(mountPoint, &mountStat) < 0) { in main() 85 fprintf(stderr, "%s: The mount point '%s' is not accessible\n", programName, mountPoint); in main() 89 fprintf(stderr, "%s: The mount point '%s' is not a directory\n", programName, mountPoint); in main() 95 volume = fs_mount_volume(mountPoint, device, fs, flags, parameter); in main()
|
H A D | mountvolume.cpp | 126 BPath mountPoint; in open_in_tracker() local 127 status_t status = partition->GetMountPoint(&mountPoint); in open_in_tracker() 132 status = get_ref_for_path(mountPoint.Path(), &ref); in open_in_tracker() 214 BPath mountPoint; in Visit() local 215 partition->GetMountPoint(&mountPoint); in Visit() 217 mountPoint.Path()); in Visit() 300 BPath mountPoint; in Visit() local 302 partition->GetMountPoint(&mountPoint); in Visit() 306 partition->IsMounted() ? mountPoint.Path() : "", in Visit() 487 BPath mountPoint; in ArgvReceived() local [all …]
|
/haiku/src/tests/kits/storage/ |
H A D | BasicTest.cpp | 88 BasicTest::createVolume(string imageFile, string mountPoint, int32 megs, in createVolume() argument 99 + (makeMountPoint ? " ; mkdir " + mountPoint : "") in createVolume() 100 + " ; mount " + imageFile + " " + mountPoint); in createVolume() 105 BasicTest::deleteVolume(string imageFile, string mountPoint, in deleteVolume() argument 109 + " ; unmount " + mountPoint in deleteVolume() 110 + (deleteMountPoint ? " ; rmdir " + mountPoint : "") in deleteVolume()
|
H A D | QueryTest.cpp | 437 static QueryTestEntry mountPoint(testMountPoint, B_DIRECTORY_NODE); 438 static QueryTestEntry dir1(mountPoint + "dir1", B_DIRECTORY_NODE); 444 static QueryTestEntry dir2(mountPoint + "dir2", B_DIRECTORY_NODE); 451 static QueryTestEntry dir3(mountPoint + "dir3", B_DIRECTORY_NODE); 457 static QueryTestEntry file1(mountPoint + "file1", B_FILE_NODE); 458 static QueryTestEntry file2(mountPoint + "file2", B_FILE_NODE); 459 static QueryTestEntry file3(mountPoint + "file3", B_FILE_NODE); 460 static QueryTestEntry link1(mountPoint + "link1", B_SYMLINK_NODE, &file1); 461 static QueryTestEntry link2(mountPoint + "link2", B_SYMLINK_NODE, &file2); 462 static QueryTestEntry link3(mountPoint + "link3", B_SYMLINK_NODE, &file3); [all …]
|
H A D | BasicTest.h | 37 static void createVolume(string imageFile, string mountPoint, int32 megs, 39 static void deleteVolume(string imageFile, string mountPoint,
|
/haiku/src/add-ons/kernel/file_systems/netfs/netfs_config/ |
H A D | netfs_config.cpp | 79 const char* mountPoint = argv[1]; in main() local 91 int fd = open(mountPoint, O_RDONLY); in main() 93 fprintf(stderr, "Opening `%s' failed: %s\n", mountPoint, in main()
|
/haiku/src/servers/mount/ |
H A D | AutoMounter.cpp | 675 AutoMounter::_UnmountAndEjectVolume(BPartition* partition, BPath& mountPoint, in _UnmountAndEjectVolume() argument 682 BDiskDeviceRoster().FindPartitionByMountPoint(mountPoint.Path(), in _UnmountAndEjectVolume() 693 status = fs_unmount_volume(mountPoint.Path(), 0); in _UnmountAndEjectVolume() 702 status = fs_unmount_volume(mountPoint.Path(), B_FORCE_UNMOUNT); in _UnmountAndEjectVolume() 751 if (dev_for_path(mountPoint.Path()) == dev_for_path("/")) in _UnmountAndEjectVolume() 752 rmdir(mountPoint.Path()); in _UnmountAndEjectVolume() 788 BDirectory mountPoint; in _UnmountAndEjectVolume() local 789 status = volume.GetRootDirectory(&mountPoint); in _UnmountAndEjectVolume() 791 status = path.SetTo(&mountPoint, "."); in _UnmountAndEjectVolume()
|
H A D | AutoMounter.h | 49 BPath& mountPoint, const char* name);
|
/haiku/src/kits/storage/disk_device/ |
H A D | Partition.cpp | 494 BPartition::GetMountPoint(BPath* mountPoint) const in GetMountPoint() 496 if (mountPoint == NULL || !ContainsFileSystem()) in GetMountPoint() 505 error = mountPoint->SetTo(&dir, NULL); in GetMountPoint() 539 return mountPoint->SetTo(mountPointPath.String()); in GetMountPoint() 561 BPartition::Mount(const char* mountPoint, uint32 mountFlags, in Mount() argument 576 if (!mountPoint) { in Mount() 582 mountPoint = mountPointPath.Path(); in Mount() 587 if (mkdir(mountPoint, S_IRWXU | S_IRWXG | S_IRWXO) < 0) in Mount() 591 rmdir(mountPoint); in Mount() 599 dev_t device = fs_mount_volume(mountPoint, partitionPath.Path(), NULL, in Mount() [all …]
|
H A D | DiskDeviceRoster.cpp | 368 BDiskDeviceRoster::FindPartitionByMountPoint(const char* mountPoint, in FindPartitionByMountPoint() argument 371 BVolume volume(dev_for_path(mountPoint)); in FindPartitionByMountPoint()
|
/haiku/src/apps/installer/ |
H A D | WorkerThread.cpp | 845 BPath mountPoint; in Visit() local 846 if (partition->GetMountPoint(&mountPoint) != B_OK) in Visit() 848 isBootPartition = strcmp(BOOT_PATH, mountPoint.Path()) == 0; in Visit() 912 BPath mountPoint; in Visit() local 913 partition->GetMountPoint(&mountPoint); in Visit() 914 isBootPartition = strcmp(BOOT_PATH, mountPoint.Path()) == 0; in Visit()
|
/haiku/headers/private/storage/ |
H A D | Partition.h | 71 status_t GetMountPoint(BPath* mountPoint) const; 73 status_t Mount(const char* mountPoint = NULL,
|
H A D | DiskDeviceRoster.h | 122 status_t FindPartitionByMountPoint(const char* mountPoint,
|
/haiku/src/tests/add-ons/kernel/file_systems/shared/ |
H A D | random_file_actions.cpp | 486 mount_image(const char* image, const char* mountPoint) in mount_image() argument 488 dev_t volume = fs_mount_volume(mountPoint, image, NULL, 0, NULL); in mount_image() 495 unmount_image(const char* mountPoint) in unmount_image() argument 497 status_t status = fs_unmount_volume(mountPoint, 0); in unmount_image()
|
/haiku/src/apps/packageinstaller/ |
H A D | PackageView.cpp | 637 BDirectory mountPoint; in _InstallTypeChanged() local 639 || volume.GetRootDirectory(&mountPoint) != B_OK) { in _InstallTypeChanged() 643 if (path.SetTo(&mountPoint, NULL) != B_OK) in _InstallTypeChanged()
|
H A D | PackageItem.cpp | 207 BPath mountPoint(&temp, NULL); in InitPath() local 208 ret = destination->SetTo(mountPoint.Path(), fPath.String()); in InitPath()
|
/haiku/src/system/kernel/disk_device_manager/ |
H A D | KPartition.cpp | 734 KPartition::GetMountPoint(KPath* mountPoint) const in GetMountPoint() 736 if (!mountPoint || !ContainsFileSystem()) in GetMountPoint() 763 char* path = mountPoint->LockBuffer(); in GetMountPoint() 764 int32 pathLen = mountPoint->BufferSize(); in GetMountPoint() 774 mountPoint->UnlockBuffer(); in GetMountPoint()
|
/haiku/headers/private/kernel/disk_device_manager/ |
H A D | KPartition.h | 118 status_t GetMountPoint(KPath* mountPoint) const;
|
/haiku/src/tools/fs_shell/ |
H A D | vfs.cpp | 983 struct vnode *mountPoint = NULL; in resolve_volume_root_to_mount_point() local 987 mountPoint = mount->covers_vnode; in resolve_volume_root_to_mount_point() 988 inc_vnode_ref_count(mountPoint); in resolve_volume_root_to_mount_point() 991 return mountPoint; in resolve_volume_root_to_mount_point() 1231 struct vnode *mountPoint = resolve_mount_point_to_volume_root(vnode); in vnode_path_to_vnode() local 1232 if (mountPoint) { in vnode_path_to_vnode() 1234 vnode = mountPoint; in vnode_path_to_vnode() 1459 struct vnode *mountPoint = resolve_volume_root_to_mount_point(vnode); in dir_vnode_to_path() local 1460 if (mountPoint) { in dir_vnode_to_path() 1462 vnode = mountPoint; in dir_vnode_to_path() [all …]
|
/haiku/src/system/kernel/vm/ |
H A D | VMAnonymousCache.cpp | 1691 KPath devPath, mountPoint; in swap_init_post_modules() local 1693 visitor.fBestPartition->GetMountPoint(&mountPoint); in swap_init_post_modules() 1694 const char* mountPath = mountPoint.Path(); in swap_init_post_modules()
|
/haiku/src/add-ons/kernel/file_systems/netfs/server/ |
H A D | ClientConnection.cpp | 576 node_ref mountPoint; in VisitMountRequest() local 581 mountPoint = share->GetNodeRef(); in VisitMountRequest() 583 mountPoint); in VisitMountRequest()
|
/haiku/src/system/kernel/fs/ |
H A D | vfs.cpp | 5159 Vnode* mountPoint = mount->covers_vnode; in vfs_get_mount_point() local 5161 *_mountPointMountID = mountPoint->device; in vfs_get_mount_point() 5162 *_mountPointNodeID = mountPoint->id; in vfs_get_mount_point()
|