Changeset View
Changeset View
Standalone View
Standalone View
stand/libsa/zfs/zfs.c
Show First 20 Lines • Show All 60 Lines • ▼ Show 20 Lines | |||||
static int zfs_mount(const char *dev, const char *path, void **data); | static int zfs_mount(const char *dev, const char *path, void **data); | ||||
static int zfs_unmount(const char *dev, void *data); | static int zfs_unmount(const char *dev, void *data); | ||||
static void zfs_bootenv_initial(const char *envname, spa_t *spa, | static void zfs_bootenv_initial(const char *envname, spa_t *spa, | ||||
const char *name, const char *dsname, int checkpoint); | const char *name, const char *dsname, int checkpoint); | ||||
static void zfs_checkpoints_initial(spa_t *spa, const char *name, | static void zfs_checkpoints_initial(spa_t *spa, const char *name, | ||||
const char *dsname); | const char *dsname); | ||||
static int zfs_parsedev(struct devdesc **idev, const char *devspec, | |||||
const char **path); | |||||
struct devsw zfs_dev; | struct devsw zfs_dev; | ||||
struct fs_ops zfs_fsops = { | struct fs_ops zfs_fsops = { | ||||
.fs_name = "zfs", | .fs_name = "zfs", | ||||
.fo_open = zfs_open, | .fo_open = zfs_open, | ||||
.fo_close = zfs_close, | .fo_close = zfs_close, | ||||
.fo_read = zfs_read, | .fo_read = zfs_read, | ||||
.fo_write = null_write, | .fo_write = null_write, | ||||
▲ Show 20 Lines • Show All 1,547 Lines • ▼ Show 20 Lines | struct devsw zfs_dev = { | ||||
.dv_close = zfs_dev_close, | .dv_close = zfs_dev_close, | ||||
.dv_ioctl = noioctl, | .dv_ioctl = noioctl, | ||||
.dv_print = zfs_dev_print, | .dv_print = zfs_dev_print, | ||||
.dv_cleanup = nullsys, | .dv_cleanup = nullsys, | ||||
.dv_fmtdev = zfs_fmtdev, | .dv_fmtdev = zfs_fmtdev, | ||||
.dv_parsedev = zfs_parsedev, | .dv_parsedev = zfs_parsedev, | ||||
}; | }; | ||||
int | static int | ||||
zfs_parsedev(struct devdesc **idev, const char *devspec, const char **path) | zfs_parsedev(struct devdesc **idev, const char *devspec, const char **path) | ||||
{ | { | ||||
static char rootname[ZFS_MAXNAMELEN]; | static char rootname[ZFS_MAXNAMELEN]; | ||||
static char poolname[ZFS_MAXNAMELEN]; | static char poolname[ZFS_MAXNAMELEN]; | ||||
spa_t *spa; | spa_t *spa; | ||||
const char *end; | const char *end; | ||||
const char *np; | const char *np; | ||||
const char *sep; | const char *sep; | ||||
▲ Show 20 Lines • Show All 402 Lines • Show Last 20 Lines |