Skip to contentSkip to conversation

libradosstriper: correct the first parameter of rados_striper_trunc

PATCH yue longguang 2 participants 3 messages Feb 2, 2018 – Feb 5, 2018 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

yehuda, please review my patch. thanks

Quoted 22 lines · yuelongguang

change the type of first parameter from rados_ioctx_t to rados_striper_t

---
 src/include/radosstriper/libradosstriper.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
src/include/radosstriper/libradosstriper.h +2 -2
index 5aa4a6b..4d552c6 100644
@@ -207,7 +207,8 @@ int rados_striper_remove(rados_striper_t striper,
  * @param size the new size of the object in bytes
  * @returns 0 on success, negative error code on failure
  */
-int rados_striper_trunc(rados_ioctx_t io, const char *soid, uint64_t size);
+int rados_striper_trunc(rados_striper_t striper,
+                        const char *soid, uint64_t size);
 
 /** @} Synchronous I/O */
 
--

1.8.3.1

#2 lore raw

Can you create a pull request for it on github?

Yehuda

Quoted 25 lines · yue longguang

yehuda, please review my patch. thanks

Quoted 22 lines · yuelongguang

change the type of first parameter from rados_ioctx_t to rados_striper_t

---
 src/include/radosstriper/libradosstriper.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
src/include/radosstriper/libradosstriper.h +2 -2
index 5aa4a6b..4d552c6 100644
@@ -207,7 +207,8 @@ int rados_striper_remove(rados_striper_t striper,
  * @param size the new size of the object in bytes
  * @returns 0 on success, negative error code on failure
  */
-int rados_striper_trunc(rados_ioctx_t io, const char *soid, uint64_t size);
+int rados_striper_trunc(rados_striper_t striper,
+                        const char *soid, uint64_t size);
 
 /** @} Synchronous I/O */
 
--

1.8.3.1

#3 lore raw

it is done. please look at https://github.com/ceph/ceph/pull/20301
thanks

Quoted 30 lines · Yehuda Sadeh-Weinraub

Can you create a pull request for it on github?

Yehuda

Quoted 25 lines · yue longguang

yehuda, please review my patch. thanks

Quoted 22 lines · yuelongguang

change the type of first parameter from rados_ioctx_t to rados_striper_t

---
 src/include/radosstriper/libradosstriper.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
src/include/radosstriper/libradosstriper.h +2 -2
index 5aa4a6b..4d552c6 100644
@@ -207,7 +207,8 @@ int rados_striper_remove(rados_striper_t striper,
  * @param size the new size of the object in bytes
  * @returns 0 on success, negative error code on failure
  */
-int rados_striper_trunc(rados_ioctx_t io, const char *soid, uint64_t size);
+int rados_striper_trunc(rados_striper_t striper,
+                        const char *soid, uint64_t size);
 
 /** @} Synchronous I/O */
 
--

1.8.3.1