Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 Jun 2025 16:51:06 GMT
From:      Robert Wing <rew@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 44a4ae3ad72d - main - newfs: don't warn() when newfs'ing plain file
Message-ID:  <202506031651.553Gp62D007920@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by rew:

URL: https://cgit.FreeBSD.org/src/commit/?id=44a4ae3ad72dd0d4e6e78f586a679d632cc4dbfd

commit 44a4ae3ad72dd0d4e6e78f586a679d632cc4dbfd
Author:     Robert Wing <rew@FreeBSD.org>
AuthorDate: 2025-06-03 16:50:58 +0000
Commit:     Robert Wing <rew@FreeBSD.org>
CommitDate: 2025-06-03 16:50:58 +0000

    newfs: don't warn() when newfs'ing plain file
    
    Differential Revision:  https://reviews.freebsd.org/D50561
---
 sbin/newfs/newfs.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/sbin/newfs/newfs.c b/sbin/newfs/newfs.c
index 78a297e6074a..418319d1cd3a 100644
--- a/sbin/newfs/newfs.c
+++ b/sbin/newfs/newfs.c
@@ -327,7 +327,6 @@ main(int argc, char *argv[])
 	if (fstat(disk.d_fd, &st) < 0)
 		err(1, "%s", special);
 	if ((st.st_mode & S_IFMT) != S_IFCHR) {
-		warn("%s: not a character-special device", special);
 		is_file = 1;	/* assume it is a file */
 		if (sectorsize == 0)
 			sectorsize = 512;



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