mirror of
https://gitee.com/openharmony/third_party_f2fs-tools
synced 2024-11-22 17:49:51 +00:00
Cancel disk model print and unref nid scan
Signed-off-by: nieben <nieben1@huawei.com> Change-Id: I3817dbcdef565842b6eb13c2a6b973b8d61e9c0e
This commit is contained in:
parent
92cf264610
commit
24003db3f4
2
config.h
2
config.h
@ -206,6 +206,8 @@
|
||||
|
||||
#define HAVE_FSYNC 1
|
||||
|
||||
#define WITH_OHOS 1
|
||||
|
||||
/* Define to `__inline__' or `__inline' if that's what the C compiler
|
||||
calls it, or to nothing if 'inline' is not supported under any name. */
|
||||
#ifndef __cplusplus
|
||||
|
@ -3335,7 +3335,7 @@ int fsck_verify(struct f2fs_sb_info *sbi)
|
||||
c.bug_on = 1;
|
||||
}
|
||||
|
||||
#ifndef WITH_ANDROID
|
||||
#ifndef WITH_OHOS
|
||||
if (nr_unref_nid && !c.ro) {
|
||||
char ans[255] = {0};
|
||||
int res;
|
||||
|
@ -897,7 +897,7 @@ int get_device_info(int i)
|
||||
#ifdef HDIO_GETGIO
|
||||
struct hd_geometry geom;
|
||||
#endif
|
||||
#if !defined(WITH_ANDROID) && defined(__linux__)
|
||||
#if !defined(WITH_OHOS) && defined(__linux__)
|
||||
sg_io_hdr_t io_hdr;
|
||||
unsigned char reply_buffer[96] = {0};
|
||||
unsigned char model_inq[6] = {MODELINQUIRY};
|
||||
@ -999,7 +999,7 @@ int get_device_info(int i)
|
||||
#endif
|
||||
}
|
||||
|
||||
#if !defined(WITH_ANDROID) && defined(__linux__)
|
||||
#if !defined(WITH_OHOS) && defined(__linux__)
|
||||
/* Send INQUIRY command */
|
||||
memset(&io_hdr, 0, sizeof(sg_io_hdr_t));
|
||||
io_hdr.interface_id = 'S';
|
||||
|
Loading…
Reference in New Issue
Block a user