~ubuntu-branches/debian/stretch/sg3-utils/stretch

« back to all changes in this revision

Viewing changes to src/sg_format.c

  • Committer: Bazaar Package Importer
  • Author(s): Ritesh Raj Sarraf
  • Date: 2011-08-09 16:36:28 UTC
  • mfrom: (1.2.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20110809163628-yh8okvhe20j5rekq
Tags: 1.32-1
* [06cef8d] Use kfreebsd-any as the build-dep.
  Thanks to Robert Millan (Closes: 634362)
* [850586d] separate build-arch and build-indep targets
* [a432747] Drop duplicate changelog
* [ec2bbd8] Update Standards Version to 3.9.2. No changes required

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
 *
7
7
 * Copyright (C) 2003  Grant Grundler    grundler at parisc-linux dot org
8
8
 * Copyright (C) 2003  James Bottomley       jejb at parisc-linux dot org
9
 
 * Copyright (C) 2005-2009  Douglas Gilbert   dgilbert at interlog dot com
 
9
 * Copyright (C) 2005-2011  Douglas Gilbert   dgilbert at interlog dot com
10
10
 *
11
11
 *   This program is free software; you can redistribute it and/or modify
12
12
 *   it under the terms of the GNU General Public License as published by
45
45
#include "sg_cmds_basic.h"
46
46
#include "sg_cmds_extra.h"
47
47
 
48
 
static char * version_str = "1.19 20101203";
 
48
static char * version_str = "1.19 20110730";
49
49
 
50
50
#define RW_ERROR_RECOVERY_PAGE 1  /* every disk should have one */
51
51
#define FORMAT_DEV_PAGE 3         /* Format Device Mode Page [now obsolete] */
535
535
                printf("      << supports protection information>>\n");
536
536
 
537
537
        if ((0 != inq_out.peripheral_type) &&
 
538
            (7 != inq_out.peripheral_type) &&
538
539
            (0xe != inq_out.peripheral_type)) {
539
540
                fprintf(stderr, "This format is only defined for disks "
540
 
                        "(using SBC-2 or RBC)\n");
 
541
                        "(using SBC-2 or RBC) and MO media\n");
541
542
                ret = SG_LIB_CAT_MALFORMED;
542
543
                goto out;
543
544
        }