NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: bin/49510: gpt(8) fails w/o drvctl and breaks sysinst



The following reply was made to PR bin/49510; it has been noted by GNATS.

From: David Holland <dholland-bugs%netbsd.org@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: bin/49510: gpt(8) fails w/o drvctl and breaks sysinst
Date: Mon, 29 Dec 2014 20:52:19 +0000

 On Mon, Dec 29, 2014 at 12:00:00PM +0000, Robert Elz wrote:
  >    | Finding the last block of the disk would leave
  >    | you in the same place as gpt(8).
  >  
  >  If
  >  	lseek(disk_fd, (off_t)-BLOCKSZE, SEEK_END);
  >  
  >  doesn't work to do that, then it (the drivers etc) should be fixed
  >  so that it does.
 
 AIUI, it doesn't, same as stat(2) doesn't return the disk size. I
 consider this a bug.
 
 -- 
 David A. Holland
 dholland%netbsd.org@localhost
 


Home | Main Index | Thread Index | Old Index