summaryrefslogtreecommitdiff
path: root/src/dd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/dd.c')
-rw-r--r--src/dd.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/dd.c b/src/dd.c
index daddc1ed6..fd468a647 100644
--- a/src/dd.c
+++ b/src/dd.c
@@ -837,6 +837,12 @@ iwrite (int fd, char const *buf, size_t size)
{
size_t total_written = 0;
+ if ((output_flags & O_DIRECT) && w_partial == 1)
+ {
+ error (0, 0, _("dd: warning: partial read; oflag=direct disabled; "
+ "suggest iflag=fullblock"));
+ }
+
if ((output_flags & O_DIRECT) && size < output_blocksize)
{
int old_flags = fcntl (STDOUT_FILENO, F_GETFL);