Skip to contentSkip to conversation

Remove sg_write_buffer

PATCH New Jaegeuk Kim 1 participant 1 message Nov 28, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Remove sg_write_buffer

From: Bart Van Assche <[email protected]>

Remove the sg_write_buffer source code and build rules now that the sg3_utils project has been imported.

---
 .gitignore                                    |    1 -
 configure.ac                                  |    1 -
 tools/Makefile.am                             |    2 +-
 tools/sg_write_buffer/Android.bp              |   27 -
 tools/sg_write_buffer/Makefile.am             |   18 -
 .../include/freebsd_nvme_ioctl.h              |  156 -
 tools/sg_write_buffer/include/sg_cmds.h       |   21 -
 tools/sg_write_buffer/include/sg_cmds_basic.h |  310 --
 tools/sg_write_buffer/include/sg_cmds_extra.h |  369 --
 tools/sg_write_buffer/include/sg_cmds_mmc.h   |   52 -
 tools/sg_write_buffer/include/sg_io_linux.h   |  185 -
 tools/sg_write_buffer/include/sg_lib.h        |  602 ---
 tools/sg_write_buffer/include/sg_lib_data.h   |  121 -
 tools/sg_write_buffer/include/sg_linux_inc.h  |   56 -
 tools/sg_write_buffer/include/sg_pr2serr.h    |   30 -
 tools/sg_write_buffer/include/sg_pt.h         |  215 -
 tools/sg_write_buffer/include/sg_pt_linux.h   |  171 -
 tools/sg_write_buffer/include/sg_pt_nvme.h    |  172 -
 tools/sg_write_buffer/include/sg_pt_win32.h   |  473 ---
 tools/sg_write_buffer/include/sg_unaligned.h  |  325 --
 tools/sg_write_buffer/sg_cmds_basic.c         |  663 ----
 tools/sg_write_buffer/sg_cmds_basic2.c        | 1069 -----
 tools/sg_write_buffer/sg_cmds_extra.c         | 2524 ------------
 tools/sg_write_buffer/sg_cmds_mmc.c           |  382 --
 tools/sg_write_buffer/sg_io_linux.c           |  256 --
 tools/sg_write_buffer/sg_lib.c                | 3494 -----------------
 tools/sg_write_buffer/sg_lib_data.c           | 1688 --------
 tools/sg_write_buffer/sg_pt_common.c          |  141 -
 tools/sg_write_buffer/sg_pt_linux.c           |  964 -----
 tools/sg_write_buffer/sg_pt_linux_nvme.c      | 1185 ------
 tools/sg_write_buffer/sg_write_buffer.c       |  516 ---
 31 files changed, 1 insertion(+), 16188 deletions(-)
 delete mode 100644 tools/sg_write_buffer/Android.bp
 delete mode 100644 tools/sg_write_buffer/Makefile.am
 delete mode 100644 tools/sg_write_buffer/include/freebsd_nvme_ioctl.h
 delete mode 100644 tools/sg_write_buffer/include/sg_cmds.h
 delete mode 100644 tools/sg_write_buffer/include/sg_cmds_basic.h
 delete mode 100644 tools/sg_write_buffer/include/sg_cmds_extra.h
 delete mode 100644 tools/sg_write_buffer/include/sg_cmds_mmc.h
 delete mode 100644 tools/sg_write_buffer/include/sg_io_linux.h
 delete mode 100644 tools/sg_write_buffer/include/sg_lib.h
 delete mode 100644 tools/sg_write_buffer/include/sg_lib_data.h
 delete mode 100644 tools/sg_write_buffer/include/sg_linux_inc.h
 delete mode 100644 tools/sg_write_buffer/include/sg_pr2serr.h
 delete mode 100644 tools/sg_write_buffer/include/sg_pt.h
 delete mode 100644 tools/sg_write_buffer/include/sg_pt_linux.h
 delete mode 100644 tools/sg_write_buffer/include/sg_pt_nvme.h
 delete mode 100644 tools/sg_write_buffer/include/sg_pt_win32.h
 delete mode 100644 tools/sg_write_buffer/include/sg_unaligned.h
 delete mode 100644 tools/sg_write_buffer/sg_cmds_basic.c
 delete mode 100644 tools/sg_write_buffer/sg_cmds_basic2.c
 delete mode 100644 tools/sg_write_buffer/sg_cmds_extra.c
 delete mode 100644 tools/sg_write_buffer/sg_cmds_mmc.c
 delete mode 100644 tools/sg_write_buffer/sg_io_linux.c
 delete mode 100644 tools/sg_write_buffer/sg_lib.c
 delete mode 100644 tools/sg_write_buffer/sg_lib_data.c
 delete mode 100644 tools/sg_write_buffer/sg_pt_common.c
 delete mode 100644 tools/sg_write_buffer/sg_pt_linux.c
 delete mode 100644 tools/sg_write_buffer/sg_pt_linux_nvme.c
 delete mode 100644 tools/sg_write_buffer/sg_write_buffer.c
.gitignore +0 -1
index c1341da9bd66..9acac42bf331 100644
@@ -51,7 +51,6 @@ stamp-h1
 /tools/parse.f2fs
 /tools/f2fscrypt
 /tools/f2fs_io/f2fs_io
-/tools/sg_write_buffer/sg_write_buffer
 
 # cscope files
 cscope.*
configure.ac +0 -1
index d3f9fb192e59..818ff37d2a41 100644
@@ -260,7 +260,6 @@ AC_CONFIG_FILES([
 	mkfs/Makefile
 	fsck/Makefile
 	tools/Makefile
-	tools/sg_write_buffer/Makefile
 	tools/f2fs_io/Makefile
 ])
 
tools/Makefile.am +1 -1
index 8756a298fdcf..8dd963a14144 100644
@@ -17,4 +17,4 @@ f2fscrypt_LDFLAGS = ${libuuid_LIBS}
 dist_man_MANS = f2fscrypt.8
 endif
 
-SUBDIRS = sg_write_buffer f2fs_io
+SUBDIRS = f2fs_io
tools/sg_write_buffer/Android.bp deleted +0 -27
deleted file mode 100644
index 5222a59f326e..000000000000
@@ -1,27 +0,0 @@
-cc_defaults {
-    name: "sg3-utils-defaults",
-    cflags: [
-        "-Wno-unused-function"
-    ],
-    local_include_dirs: [
-        "include",
-    ],
-}
-
-cc_binary {
-    name: "sg_write_buffer",
-    defaults: [ "sg3-utils-defaults" ],
-    srcs: [
-        "sg_write_buffer.c",
-        "sg_cmds_basic.c",
-        "sg_cmds_basic2.c",
-        "sg_cmds_extra.c",
-        "sg_cmds_mmc.c",
-        "sg_io_linux.c",
-        "sg_lib.c",
-        "sg_lib_data.c",
-        "sg_pt_common.c",
-        "sg_pt_linux.c",
-        "sg_pt_linux_nvme.c",
-    ],
-}
tools/sg_write_buffer/Makefile.am deleted +0 -18
deleted file mode 100644
index 19c438ddf85c..000000000000
@@ -1,18 +0,0 @@
-## Makefile.am
-
-if LINUX
-AM_CPPFLAGS = -I$(srcdir)/include
-AM_CFLAGS = -Wall
-sbin_PROGRAMS = sg_write_buffer
-sg_write_buffer_SOURCES = sg_write_buffer.c \
-	sg_cmds_basic.c		\
-	sg_cmds_basic2.c	\
-	sg_cmds_extra.c		\
-	sg_cmds_mmc.c		\
-	sg_io_linux.c		\
-	sg_lib.c		\
-	sg_lib_data.c		\
-	sg_pt_common.c		\
-	sg_pt_linux.c		\
-	sg_pt_linux_nvme.c
-endif
tools/sg_write_buffer/include/freebsd_nvme_ioctl.h deleted +0 -156

156 lines not on this page · raw message

tools/sg_write_buffer/include/sg_cmds.h deleted +0 -21
deleted file mode 100644
index 690f53ab0a1d..000000000000
@@ -1,21 +0,0 @@
-#ifndef SG_CMDS_H
-#define SG_CMDS_H
-
-/********************************************************************
- * This header did contain wrapper declarations for many SCSI commands
- * up until sg3_utils version 1.22 . In that version, the command
- * wrappers were broken into two groups, the 'basic' ones found in the
- * "sg_cmds_basic.h" header and the 'extra' ones found in the
- * "sg_cmds_extra.h" header. This header now simply includes those two
- * headers.
- * In sg3_utils version 1.26 the sg_cmds_mmc.h header was added and
- * contains some MMC specific commands.
- * The corresponding function definitions are found in the sg_cmds_basic.c,
- * sg_cmds_extra.c and sg_cmds_mmc.c files.
- ********************************************************************/
-
-#include "sg_cmds_basic.h"
-#include "sg_cmds_extra.h"
-#include "sg_cmds_mmc.h"
-
-#endif
tools/sg_write_buffer/include/sg_cmds_basic.h deleted +0 -310

310 lines not on this page · raw message

tools/sg_write_buffer/include/sg_cmds_extra.h deleted +0 -369

369 lines not on this page · raw message

tools/sg_write_buffer/include/sg_cmds_mmc.h deleted +0 -52

52 lines not on this page · raw message

tools/sg_write_buffer/include/sg_io_linux.h deleted +0 -185

185 lines not on this page · raw message

tools/sg_write_buffer/include/sg_lib.h deleted +0 -602

602 lines not on this page · raw message

tools/sg_write_buffer/include/sg_lib_data.h deleted +0 -121

121 lines not on this page · raw message

tools/sg_write_buffer/include/sg_linux_inc.h deleted +0 -56

56 lines not on this page · raw message

tools/sg_write_buffer/include/sg_pr2serr.h deleted +0 -30
deleted file mode 100644
index 4419087eaa37..000000000000
@@ -1,30 +0,0 @@
-#ifndef SG_PR2SERR_H
-#define SG_PR2SERR_H
-
-/*
- * Copyright (c) 2004-2018 Douglas Gilbert.
- * All rights reserved.
- * Use of this source code is governed by a BSD-style
- * license that can be found in the BSD_LICENSE file.
- */
-
-#include <stdio.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-
-#if defined(__GNUC__) || defined(__clang__)
-int pr2serr(const char * fmt, ...)
-        __attribute__ ((format (printf, 1, 2)));
-#else
-int pr2serr(const char * fmt, ...);
-#endif
-
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
tools/sg_write_buffer/include/sg_pt.h deleted +0 -215

215 lines not on this page · raw message

tools/sg_write_buffer/include/sg_pt_linux.h deleted +0 -171

171 lines not on this page · raw message

tools/sg_write_buffer/include/sg_pt_nvme.h deleted +0 -172

172 lines not on this page · raw message

tools/sg_write_buffer/include/sg_pt_win32.h deleted +0 -473

473 lines not on this page · raw message

tools/sg_write_buffer/include/sg_unaligned.h deleted +0 -325

3 lines not on this page · raw message

tools/sg_write_buffer/sg_cmds_basic.c deleted +0 -663

663 lines not on this page · raw message

tools/sg_write_buffer/sg_cmds_basic2.c deleted +0 -1069

1,069 lines not on this page · raw message

tools/sg_write_buffer/sg_cmds_extra.c deleted +0 -2524

2,524 lines not on this page · raw message

tools/sg_write_buffer/sg_cmds_mmc.c deleted +0 -382

382 lines not on this page · raw message

tools/sg_write_buffer/sg_io_linux.c deleted +0 -256

256 lines not on this page · raw message

tools/sg_write_buffer/sg_lib.c deleted +0 -3494

3,494 lines not on this page · raw message

tools/sg_write_buffer/sg_lib_data.c deleted +0 -1688

1,688 lines not on this page · raw message

tools/sg_write_buffer/sg_pt_common.c deleted +0 -141

141 lines not on this page · raw message

tools/sg_write_buffer/sg_pt_linux.c deleted +0 -964

964 lines not on this page · raw message

tools/sg_write_buffer/sg_pt_linux_nvme.c deleted +0 -1185

1,185 lines not on this page · raw message

tools/sg_write_buffer/sg_write_buffer.c deleted +0 -516

516 lines not on this page · raw message

The rest of this diff is not shown. View the raw message.

Signature · 8 lines
2.38.1.584.g0f3c55d4c2-goog



_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel

Part of the diff is not shown here. View the raw message.