svn commit: r225728 - stable/8/sys/kern
Attilio Rao
attilio at FreeBSD.org
Thu Sep 22 11:07:12 UTC 2011
Author: attilio
Date: Thu Sep 22 11:07:11 2011
New Revision: 225728
URL: http://svn.freebsd.org/changeset/base/225728
Log:
MFC r225516:
Return ENOSPC rather than ENXIO when dump_write() cannot proceed in
order to correctl deal with consumers.
Sponsored by: Sandvine Incorporated
Modified:
stable/8/sys/kern/kern_shutdown.c
Directory Properties:
stable/8/sys/ (props changed)
stable/8/sys/amd64/include/xen/ (props changed)
stable/8/sys/cddl/contrib/opensolaris/ (props changed)
stable/8/sys/contrib/dev/acpica/ (props changed)
stable/8/sys/contrib/pf/ (props changed)
Modified: stable/8/sys/kern/kern_shutdown.c
==============================================================================
--- stable/8/sys/kern/kern_shutdown.c Thu Sep 22 10:52:14 2011 (r225727)
+++ stable/8/sys/kern/kern_shutdown.c Thu Sep 22 11:07:11 2011 (r225728)
@@ -712,8 +712,11 @@ dump_write(struct dumperinfo *di, void *
if (length != 0 && (offset < di->mediaoffset ||
offset - di->mediaoffset + length > di->mediasize)) {
- printf("Attempt to write outside dump device boundaries.\n");
- return (ENXIO);
+ printf("Attempt to write outside dump device boundaries.\n"
+ "offset(%jd), mediaoffset(%jd), length(%ju), mediasize(%jd).\n",
+ (intmax_t)offset, (intmax_t)di->mediaoffset,
+ (uintmax_t)length, (intmax_t)di->mediasize);
+ return (ENOSPC);
}
return (di->dumper(di->priv, virtual, physical, offset, length));
}
More information about the svn-src-stable-8
mailing list