Cancel disk model print and unref nid scan

Signed-off-by: nieben <nieben1@huawei.com>

Change-Id: I3817dbcdef565842b6eb13c2a6b973b8d61e9c0e
This commit is contained in:
nieben 2024-10-09 19:12:37 +08:00
parent 92cf264610
commit 24003db3f4
3 changed files with 5 additions and 3 deletions

View File

@ -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

View File

@ -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;

View File

@ -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';