36 lines
1.0 KiB
Diff
36 lines
1.0 KiB
Diff
From a80fe9392fd910074eccc4733ff2cd3e1625e48e Mon Sep 17 00:00:00 2001
|
|
From: Klaus Wenninger <klaus.wenninger@aon.at>
|
|
Date: Mon, 15 Apr 2019 17:36:12 +0200
|
|
Subject: [PATCH] Sanity: sbd-md: remove some left over code
|
|
|
|
---
|
|
src/sbd-md.c | 5 -----
|
|
1 file changed, 5 deletions(-)
|
|
|
|
diff --git a/src/sbd-md.c b/src/sbd-md.c
|
|
index c51d381..60a1873 100644
|
|
--- a/src/sbd-md.c
|
|
+++ b/src/sbd-md.c
|
|
@@ -373,7 +373,6 @@ init_device(struct sbd_context *st)
|
|
struct sector_header_s *s_header;
|
|
struct sector_node_s *s_node;
|
|
struct sector_mbox_s *s_mbox;
|
|
- struct stat s;
|
|
char uuid[37];
|
|
int i;
|
|
int rc = 0;
|
|
@@ -394,10 +393,6 @@ init_device(struct sbd_context *st)
|
|
uuid_generate(s_header->uuid);
|
|
uuid_unparse_lower(s_header->uuid, uuid);
|
|
|
|
- fstat(st->devfd, &s);
|
|
- /* printf("st_size = %ld, st_blksize = %ld, st_blocks = %ld\n",
|
|
- s.st_size, s.st_blksize, s.st_blocks); */
|
|
-
|
|
cl_log(LOG_INFO, "Creating version %d.%d header on device %d (uuid: %s)",
|
|
s_header->version, s_header->minor_version,
|
|
st->devfd, uuid);
|
|
--
|
|
1.8.3.1
|
|
|