diff mbox series

[f2fs-dev,v2,2/2] f2fs-tools: add HAVE_PREAD and HAVE_PWRITE

Message ID 20241211001404.4120186-2-weilongping@oppo.com (mailing list archive)
State New
Headers show
Series [f2fs-dev,v2,1/2] f2fs-tools: use pread and pwrite when they are available. | expand

Commit Message

LongPing Wei Dec. 11, 2024, 12:14 a.m. UTC
This patch will enable pread and pwrite support on Android platform.

Signed-off-by: LongPing Wei <weilongping@oppo.com>
---
 include/android_config.h | 2 ++
 1 file changed, 2 insertions(+)

Comments

Sheng Yong Dec. 11, 2024, 2:14 p.m. UTC | #1
On 2024/12/11 8:14, LongPing Wei wrote:
> This patch will enable pread and pwrite support on Android platform.
> 
> Signed-off-by: LongPing Wei <weilongping@oppo.com>

Reviewed-by: Sheng Yong <shengyong@oppo.com>

thanks,
shengyong
Chao Yu Dec. 12, 2024, 3:13 p.m. UTC | #2
On 2024/12/11 8:14, LongPing Wei wrote:
> This patch will enable pread and pwrite support on Android platform.
> 
> Signed-off-by: LongPing Wei <weilongping@oppo.com>

Reviewed-by: Chao Yu <chao@kernel.org>

Thanks,
diff mbox series

Patch

diff --git a/include/android_config.h b/include/android_config.h
index f5cd4de..b11e2e4 100644
--- a/include/android_config.h
+++ b/include/android_config.h
@@ -36,6 +36,8 @@ 
 #define HAVE_FSTAT64 1
 #define HAVE_GETMNTENT 1
 #define HAVE_MEMSET 1
+#define HAVE_PREAD 1
+#define HAVE_PWRITE 1
 #define HAVE_SELINUX_ANDROID_H 1
 #define HAVE_SETMNTENT 1
 #define HAVE_SPARSE_SPARSE_H 1