Changeset View
Changeset View
Standalone View
Standalone View
head/sbin/nvmecontrol/format.c
Show First 20 Lines • Show All 41 Lines • ▼ Show 20 Lines | |||||
#include <unistd.h> | #include <unistd.h> | ||||
#include "nvmecontrol.h" | #include "nvmecontrol.h" | ||||
#define FORMAT_USAGE \ | #define FORMAT_USAGE \ | ||||
"format [-f fmt] [-m mset] [-p pi] [-l pil] [-E] [-C] <controller id|namespace id>\n" | "format [-f fmt] [-m mset] [-p pi] [-l pil] [-E] [-C] <controller id|namespace id>\n" | ||||
static void | static void | ||||
format(struct nvme_function *nf, int argc, char *argv[]) | format(const struct nvme_function *nf, int argc, char *argv[]) | ||||
{ | { | ||||
struct nvme_controller_data cd; | struct nvme_controller_data cd; | ||||
struct nvme_namespace_data nsd; | struct nvme_namespace_data nsd; | ||||
struct nvme_pt_command pt; | struct nvme_pt_command pt; | ||||
char path[64]; | char path[64]; | ||||
char *target; | char *target; | ||||
uint32_t nsid; | uint32_t nsid; | ||||
int ch, fd; | int ch, fd; | ||||
▲ Show 20 Lines • Show All 126 Lines • Show Last 20 Lines |