Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 31 May 2017 08:40:39 +0000 (UTC)
From:      Ngie Cooper <ngie@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r319302 - stable/11/lib/libgeom
Message-ID:  <201705310840.v4V8ed19019357@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ngie
Date: Wed May 31 08:40:39 2017
New Revision: 319302
URL: https://svnweb.freebsd.org/changeset/base/319302

Log:
  MFC r317311,r317312,r319019:
  
  r317311:
  
  Check for failures from getpagesize(3)
  
  Return errno on failure, similar to the open(2) call above it.
  
  CID:		1193753
  
  r317312:
  
  Fix type for `pagesize` to match the return type for getpagesize(3)
  to fix the build
  
  Pointyhat to:	ngie
  
  r319019:
  
  Remove getpagesize(3) error checking added in r317312
  
  getpagesize(3) no longer fails as of r317436.

Modified:
  stable/11/lib/libgeom/geom_stats.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/lib/libgeom/geom_stats.c
==============================================================================
--- stable/11/lib/libgeom/geom_stats.c	Wed May 31 08:36:47 2017	(r319301)
+++ stable/11/lib/libgeom/geom_stats.c	Wed May 31 08:40:39 2017	(r319302)
@@ -42,8 +42,8 @@
 #include <libgeom.h>
 
 /************************************************************/
-static uint npages, pagesize, spp;
-static int statsfd = -1;
+static uint npages, spp;
+static int pagesize, statsfd = -1;
 static u_char *statp;
 
 void



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