~ubuntu-branches/ubuntu/jaunty/udev/jaunty-proposed

« back to all changes in this revision

Viewing changes to extras/volume_id/lib/ddf_raid.c

  • Committer: Bazaar Package Importer
  • Author(s): Scott James Remnant
  • Date: 2009-02-20 13:37:24 UTC
  • mfrom: (1.1.14 upstream)
  • Revision ID: james.westby@ubuntu.com-20090220133724-8c3wrv9pviayz2pw
Tags: 138-1
* New upstream release:
  - Block device nodes watched with inotify for changes and
    /dev/disk/by-{uuid,label} updated automatically.
  - Loop devices now get persistent disk links too.

* Apply NAME rules when string_escape=none.  LP: #325690.

Show diffs side-by-side

added added

removed removed

Lines of Context:
87
87
        return -1;
88
88
found:
89
89
        volume_id_set_uuid(id, ddf->guid, DDF_GUID_LENGTH, UUID_STRING);
90
 
        snprintf(id->type_version, DDF_REV_LENGTH, "%s", ddf->ddf_rev);
 
90
        snprintf(id->type_version, DDF_REV_LENGTH + 1, "%s", ddf->ddf_rev);
91
91
        volume_id_set_usage(id, VOLUME_ID_RAID);
92
92
        id->type = "ddf_raid_member";
93
93
        return 0;