Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F178120278
D23923.1796028466.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
795 B
Referenced Files
None
Subscribers
None
D23923.1796028466.diff
View Options
Index: head/sbin/dumpon/dumpon.c
===================================================================
--- head/sbin/dumpon/dumpon.c
+++ head/sbin/dumpon/dumpon.c
@@ -203,11 +203,8 @@
err(EX_OSERR, "can't get memory size");
if (ioctl(fd, DIOCGMEDIASIZE, &mediasize) != 0)
err(EX_OSERR, "%s: can't get size", fn);
- if ((uintmax_t)mediasize < (uintmax_t)physmem) {
- if (verbose)
- printf("%s is smaller than physical memory\n", fn);
- exit(EX_IOERR);
- }
+ if ((uintmax_t)mediasize < (uintmax_t)physmem)
+ errx(EX_IOERR, "%s is smaller than physical memory", fn);
}
#ifdef HAVE_CRYPTO
@@ -495,7 +492,7 @@
usage();
fd = opendumpdev(dev, dumpdev);
- if (!netdump && !gzip && !rflag)
+ if (!netdump && !gzip && !zstd && !rflag)
check_size(fd, dumpdev);
kdap = &ndconf;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 30, 8:47 AM (2 h, 18 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
42103174
Default Alt Text
D23923.1796028466.diff (795 B)
Attached To
Mode
D23923: dumpon: skip size check if using zstd
Attached
Detach File
Event Timeline