Commit Graph

8 Commits

Author SHA1 Message Date
Hanqing Wu 73defb0fe3 curvebs: support 512 aligned IO
Signed-off-by: Hanqing Wu <wuhanqing@corp.netease.com>
2023-07-03 10:54:09 +08:00
Hanqing Wu 5f5220c618 curve: support block storage open multiple times
support block storage open multiple times
e.g., a single file/image can be mapped multiple times on different hosts by
curve-nbd with extra option `--no-exclusive'

limitations:
1. provided as a shared disk/device WITHOUT data consistent guarantee,
   so it's users' responsibility to deal with this problem.
2. each file/image can only open once on each host.
2021-12-23 17:19:52 +08:00
Hanqing Wu fbefdb023c client: fix segment fault in SourceReader
After #172 and #209, source volume data of the clone volume
can be read within the client through SourceReader, and each
source volume was also opened and represented by a FileInstance,
but `FileInstance::mdsclient_` points to `FileClient::mdsClient_`,
so after FileClient is destroyed, `FileInstance::mdsclient_`
becomes dangling pointer.

To fix this problem, we let `FileClient::mdsClient_` be a shared_ptr,
and each FileInstance holds ownership of it.

Signed-off-by: Hanqing Wu <wuhanqing@corp.netease.com>
2021-05-24 19:36:35 +08:00
wuhanqing 5a4889d602 mds/client: support discard 2021-05-14 10:03:19 +08:00
qinyi 7256b5d9e9 add License head for all files
Change-Id: Ifa79d743db3cf053027265484f26cacc656b2e14
2020-07-13 15:20:43 +08:00
wuhanqing 401f5e9c82 fix ut segv error
Change-Id: Id17b826bd09902559e5f41263a1fbeadd29c2976
2020-01-10 13:35:20 +08:00
tongguangxun 49e427e89a 调整mdsclient rpc重试逻辑
Change-Id: Ic972311db94d7166199ba44866f1d93cdd7a4ee7
2019-12-20 19:37:50 +08:00
wuhanqing 079f9e525d [client] 增加单元测试覆盖率
Change-Id: Ic611bc2a089dea187f808177dca443a4fc627c43
2019-11-28 16:28:50 +08:00