14429e896e
device path + child partition name. When a "raw" device is unpublished the node removal notification triggers the partition and child partitions to be unpublished/removed. Since in that case the "raw" node is already unpublished trying to resolve it in devfs_unpublish_partition() again to unpublish the child partitions would fail, leaving the child partition nodes behind. When a new raw device would then become available publishing its partitions would fail because of these left behind nodes, causing bug #4587. Seeing that this code is more compact and straight forward anyway I don't quite see why it was changed in the first place. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34967 a95241bf-73f2-0310-859d-f6bbb57e9c96
37 lines
1.0 KiB
C
37 lines
1.0 KiB
C
/*
|
|
* Copyright 2002-2008, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
|
|
* Distributed under the terms of the MIT License.
|
|
*
|
|
* Copyright 2001-2002, Travis Geiselbrecht. All rights reserved.
|
|
* Distributed under the terms of the NewOS License.
|
|
*/
|
|
#ifndef _DEVFS_H
|
|
#define _DEVFS_H
|
|
|
|
|
|
#include <Drivers.h>
|
|
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
status_t devfs_unpublish_file_device(const char *path);
|
|
status_t devfs_publish_file_device(const char *path, const char *filePath);
|
|
|
|
status_t devfs_unpublish_partition(const char *path);
|
|
status_t devfs_publish_partition(const char *name, const partition_info *info);
|
|
status_t devfs_rename_partition(const char *devicePath, const char *oldName,
|
|
const char *newName);
|
|
|
|
status_t devfs_unpublish_device(const char *path, bool disconnect);
|
|
status_t devfs_publish_device(const char *path, device_hooks *calls);
|
|
status_t devfs_publish_directory(const char *path);
|
|
status_t devfs_rescan_driver(const char *driverName);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* _DEVFS_H */
|