Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Aug 2005 16:45:32 +0000 (UTC)
From:      "Christian S.J. Peron" <csjp@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sbin/mdconfig mdconfig.c
Message-ID:  <200508301645.j7UGjWZF088434@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
csjp        2005-08-30 16:45:32 UTC

  FreeBSD src repository

  Modified files:
    sbin/mdconfig        mdconfig.c 
  Log:
  When using files as backing stores for devices, and the user has requested the
  device be created read+write, check to see if the backing store is read only
  through the use of the access(2) system call. If this check fails returning
  EACCES, EPERM or EROFS then gracefully downgrade the access to read only. Also
  print a warning message to stderr, informing the user that the access mode
  they requested is not available.
  
  This behavior used to be handled by md(4) but was changed in revision 1.154
  
  Discussed with: pjd, phk, Dario Freni <saturnero at freesbie dot org>
  Reviewed by:    phk
  
  Revision  Changes    Path
  1.44      +11 -0     src/sbin/mdconfig/mdconfig.c



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