diff options
author | Lennart Poettering <lennart@poettering.net> | 2008-07-01 21:22:18 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2008-07-01 21:22:18 +0200 |
commit | 2713325d003f087969f61532d933597f1bed2dfe (patch) | |
tree | e6436f086913a7b7890714251dabcf1a389dea77 /skdump.c | |
parent | 6aff3a351c7f46ed8b0b3c86ac3e0b75dc6a326f (diff) |
remove stuff that moved to libatasmart
Diffstat (limited to 'skdump.c')
-rw-r--r-- | skdump.c | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/skdump.c b/skdump.c deleted file mode 100644 index 93bf18f..0000000 --- a/skdump.c +++ /dev/null @@ -1,54 +0,0 @@ -/*-*- Mode: C; c-basic-offset: 8 -*-*/ - -/*** - This file is part of SmartKit. - - Copyright 2008 Lennart Poettering - - SmartKit is free software; you can redistribute it and/or modify - it under the terms of the GNU Lesser General Public License as - published by the Free Software Foundation, either version 2.1 of the - License, or (at your option) any later version. - - SmartKit is distributed in the hope that it will be useful, but - WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with SmartKit. If not, If not, see - <http://www.gnu.org/licenses/>. -***/ - -#include <stdio.h> -#include <string.h> -#include <errno.h> - -#include "smart.h" - -int main(int argc, char *argv[]) { - int ret; - const char *device; - SkDisk *d; - - if (argc != 2) { - fprintf(stderr, "%s [DEVICE]\n", argv[0]); - return 1; - } - - device = argv[1]; - - if ((ret = sk_disk_open(device, &d)) < 0) { - fprintf(stderr, "Failed to open disk %s: %s\n", device, strerror(errno)); - return 1; - } - - if ((ret = sk_disk_dump(d)) < 0) { - fprintf(stderr, "Failed to dump disk data: %s\n", strerror(errno)); - return 1; - } - - sk_disk_free(d); - - return 0; -} |