Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F135529427
D8801.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
690 B
Referenced Files
None
Subscribers
None
D8801.diff
View Options
Index: head/bin/df/df.c
===================================================================
--- head/bin/df/df.c
+++ head/bin/df/df.c
@@ -254,9 +254,11 @@
rv = 1;
continue;
}
-#ifdef MOUNT_CHAR_DEVS
} else if (S_ISCHR(stbuf.st_mode)) {
if ((mntpt = getmntpt(*argv)) == NULL) {
+#ifdef MOUNT_CHAR_DEVS
+ xo_warnx(
+ "df on unmounted devices is deprecated");
mdev.fspec = *argv;
mntpath = strdup("/tmp/df.XXXXXX");
if (mntpath == NULL) {
@@ -305,8 +307,12 @@
(void)rmdir(mntpt);
free(mntpath);
continue;
- }
+#else
+ xo_warnx("%s: not mounted", *argv);
+ rv = 1;
+ continue;
#endif
+ }
} else
mntpt = *argv;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Nov 11, 2:04 PM (16 h, 27 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
25164949
Default Alt Text
D8801.diff (690 B)
Attached To
Mode
D8801: Emit a deprecation warning when mounting a device to print statisistics.
Attached
Detach File
Event Timeline
Log In to Comment