Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 2 Apr 1995 09:36:40 -0700
From:      Bruce Evans <bde>
To:        CVS-commiters, cvs-sbin
Subject:   cvs commit: src/sbin/badsect badsect.c
Message-ID:  <199504021636.JAA03684@freefall.cdrom.com>

next in thread | raw e-mail | index | archive | help
bde         95/04/02 09:36:39

  Modified:    sbin/badsect badsect.c
  Log:
  Make this actually work.  It always failed in FreeBSD because it attempted
  to open the mounted block device containing the directory to put the bad
  sector files in, and opening of mounted block devices hasn't been allowed
  since Net/2 or before.  Attempt to open the raw device instead.  Be more
  careful about long names.
  
  Use lstat() instead of stat() to search for block devices so that my
  symlink to the default floppy doesn't cause problems.
  
  Check for truncation of the block number when it is squeezed through the
  mknod() interface.  The maximum used to be only 32767, but now it large
  enough.



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