Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Oct 1998 02:46:42 -0700 (PDT)
From:      Bruce Evans <bde@FreeBSD.ORG>
To:        cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG
Subject:   cvs commit: src/sys/kern subr_diskslice.c
Message-ID:  <199810170946.CAA08095@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
bde         1998/10/17 02:46:42 PDT

  Modified files:
    sys/kern             subr_diskslice.c 
  Log:
  Overload the correct errno for attempts to set an in-core label with
  a raw partition at a nonzero offset (EINVAL should have been EXDEV;
  DIOCSDINFO was broken, and DIOCWDINFO was broken because it depended
  on DIOCSDINFO).
  
  A zero offset for the raw partition should probably be enforced in
  setdisklabel(), and DIOCWDINFO should probably always be handled by
  first calling setdisklabel() so that writedisklabel() doesn't need to
  enforce it, but this has never been done; dsioctl() has a special
  check.  Changes in this commit are limited to dsioctl() to preserve
  bug for bug compatibility in drivers that don't use the slice code
  (notably the ccd driver, which allows setting a bogus label in
  DIOCWDINFO and doesn't undo the setting when writedisklabel() fails).
  
  Revision  Changes    Path
  1.59      +2 -2      src/sys/kern/subr_diskslice.c

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199810170946.CAA08095>