Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 Jul 2018 05:53:27 +0000 (UTC)
From:      Allan Jude <allanjude@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r335883 - head/stand/common
Message-ID:  <201807030553.w635rRYj033580@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: allanjude
Date: Tue Jul  3 05:53:27 2018
New Revision: 335883
URL: https://svnweb.freebsd.org/changeset/base/335883

Log:
  stand/common/disk.c: dev->d_offset still needs to be set to 0
  
  With r335868, I thought this was no longer necessary. I was wrong.
  
  Reported by:	ian
  Sponsored by:	Klara Systems

Modified:
  head/stand/common/disk.c

Modified: head/stand/common/disk.c
==============================================================================
--- head/stand/common/disk.c	Tue Jul  3 04:02:40 2018	(r335882)
+++ head/stand/common/disk.c	Tue Jul  3 05:53:27 2018	(r335883)
@@ -244,6 +244,7 @@ disk_open(struct disk_devdesc *dev, uint64_t mediasize
 	partdev.d_slice = -1;
 	partdev.d_partition = -1;
 
+	dev->d_offset = 0;
 	table = NULL;
 	slice = dev->d_slice;
 	partition = dev->d_partition;



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