add_partitions_for
extern status_t add_partitions_for(int fd, bool mountFileSystems, bool isBootDevice = false);
extern status_t add_partitions_for(Node *device, bool mountFileSystems, bool isBootDevice = false);
add_partitions_for(disk, true, false);
status_t status = add_partitions_for(fd, mountFileSystems, isBootDevice);
error = add_partitions_for(device, false, true);
if (add_partitions_for(device, true) == B_OK) {