aboutsummaryrefslogtreecommitdiff
path: root/src/sg_dd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sg_dd.c')
-rw-r--r--src/sg_dd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sg_dd.c b/src/sg_dd.c
index cd8eb4b2..8392f31d 100644
--- a/src/sg_dd.c
+++ b/src/sg_dd.c
@@ -182,7 +182,7 @@ static long seed;
static struct drand48_data drand;/* opaque, used by srand48_r and mrand48_r */
#endif
-static const char * proc_allow_dio = "/proc/scsi/sg/allow_dio";
+static const char * sg_allow_dio = "/sys/module/sg/parameters/allow_dio";
struct flags_t {
bool append;
@@ -2733,11 +2733,11 @@ bypass_copy:
pr2serr(">> Direct IO requested but incomplete %d times\n",
dio_incomplete_count);
- if ((fd = open(proc_allow_dio, O_RDONLY)) >= 0) {
+ if ((fd = open(sg_allow_dio, O_RDONLY)) >= 0) {
if (1 == read(fd, &c, 1)) {
if ('0' == c)
pr2serr(">>> %s set to '0' but should be set to '1' for "
- "direct IO\n", proc_allow_dio);
+ "direct IO\n", sg_allow_dio);
}
close(fd);
}