lib/fsdev: mount and umount API introducedThis patch introduces SPDK fsdev spdk_fsdev_mount and spdk_fsdev_umountAPIs, the SPDK fsdev analogues of FUSE_INIT and FUSE_DESTROY.The corresponding fs
lib/fsdev: mount and umount API introducedThis patch introduces SPDK fsdev spdk_fsdev_mount and spdk_fsdev_umountAPIs, the SPDK fsdev analogues of FUSE_INIT and FUSE_DESTROY.The corresponding fsdev module handlers are optional (as any other),however failing the INIT handler will fail the FUSE_INIT and thereforethe host's mount.The spdk_fsdev_open() API doesn't get the open_opts parameter anymore.It became mount_opts now.Change-Id: I316a31f6999b9fabe6cee51c87fdd0e6e49ed569Signed-off-by: Anton Nayshtut <anayshtut@nvidia.com>Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/25009Reviewed-by: Ben Walker <ben@nvidia.com>Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>Community-CI: Mellanox Build BotReviewed-by: Jim Harris <jim.harris@samsung.com>Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com>Community-CI: Community CI Samsung <spdk.community.ci.samsung@gmail.com>
show more ...
module/fsdev/aio: fixed couple of errorsFixed issues detected by Coverity.1) close(fd) could be called for already closed fd. Now it is not possible2) A file descriptor was checked instead of f
module/fsdev/aio: fixed couple of errorsFixed issues detected by Coverity.1) close(fd) could be called for already closed fd. Now it is not possible2) A file descriptor was checked instead of fhandle that was returned from file_handle_create(fobject, fd)3) A fsdev_io was checked instead of fsdev_io->u_in.symlink.target when checking if strdup() succeededChange-Id: Ic679629bb6a6e63f4a087c826ed3ec73fe57bdb7Signed-off-by: Marcin Spiewak <marcin.spiewak@intel.com>Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/24646Reviewed-by: Changpeng Liu <changpeliu@tencent.com>Community-CI: Mellanox Build BotTested-by: SPDK CI Jenkins <sys_sgci@intel.com>Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com>
env: add SPDK_ENV_NUMA_ID_ANY and replace socket_id with numa_idWe will try to avoid further proliferation of "SOCKET_ID" to referto a NUMA socket ID moving forward, and just use "NUMA_ID" to avoi
env: add SPDK_ENV_NUMA_ID_ANY and replace socket_id with numa_idWe will try to avoid further proliferation of "SOCKET_ID" to referto a NUMA socket ID moving forward, and just use "NUMA_ID" to avoidconfusion with TCP sockets.Change all of the existing in-tree SPDK_ENV_SOCKET_ID_ANY uses toSPDK_ENV_NUMA_ID_ANY, but keep the old #define around, at least fornow. Also change all 'socket_id' parameters to 'numa_id'.We still have spdk_env_get_socket_id(), we will need to keep thisbut next patch will add spdk_env_get_numa_id().Signed-off-by: Jim Harris <jim.harris@samsung.com>Change-Id: Idc31c29e32b708c24d88f9c6fecaf9a99e34ba1eReviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/24607Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com>Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com>Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>Reviewed-by: Shuhei Matsumoto <smatsumoto@nvidia.com>Reviewed-by: Ben Walker <ben@nvidia.com>Community-CI: Mellanox Build Bot
fsdev: Add generic filesystem layer implementationChange-Id: I021b7574de0862d42a8c82b8ca4d39b816025a5bSigned-off-by: Anton Nayshtut <anayshtut@nvidia.com>Reviewed-on: https://review.spdk.io/gerri
fsdev: Add generic filesystem layer implementationChange-Id: I021b7574de0862d42a8c82b8ca4d39b816025a5bSigned-off-by: Anton Nayshtut <anayshtut@nvidia.com>Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/22511Community-CI: Mellanox Build BotReviewed-by: Jim Harris <jim.harris@samsung.com>Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>Reviewed-by: Ben Walker <ben@nvidia.com>