예제 #1
0
파일: uuids.c 프로젝트: kelledge/libguestfs
static int
e2uuid (const char *device, const char *uuid)
{
  /* Don't allow the magic values here.  If callers want to do this
   * we'll add alternate set_uuid_* calls.
   */
  if (STREQ (uuid, "clear") || STREQ (uuid, "random") ||
      STREQ (uuid, "time")) {
    reply_with_error ("e2: invalid new UUID");
    return -1;
  }

  return do_set_e2uuid (device, uuid);
}
예제 #2
0
파일: ext2.c 프로젝트: will-Do/libguestfs
int
ext_set_uuid_random (const char *device)
{
    return do_set_e2uuid (device, "random");
}