[ide] obsolete /proc/ide/hd?/settings

Majority of these settings is also available through ioctls.
We will deal with the rest during deprecation period.
Signed-off-by: default avatarBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
parent d56692ec
...@@ -132,6 +132,9 @@ static int proc_ide_read_settings ...@@ -132,6 +132,9 @@ static int proc_ide_read_settings
char *out = page; char *out = page;
int len, rc, mul_factor, div_factor; int len, rc, mul_factor, div_factor;
printk(KERN_WARNING "Warning: /proc/ide/hd?/settings interface is "
"obsolete, and will be removed soon!\n");
down(&ide_setting_sem); down(&ide_setting_sem);
out += sprintf(out, "name\t\t\tvalue\t\tmin\t\tmax\t\tmode\n"); out += sprintf(out, "name\t\t\tvalue\t\tmin\t\tmax\t\tmode\n");
out += sprintf(out, "----\t\t\t-----\t\t---\t\t---\t\t----\n"); out += sprintf(out, "----\t\t\t-----\t\t---\t\t---\t\t----\n");
...@@ -168,6 +171,9 @@ static int proc_ide_write_settings(struct file *file, const char __user *buffer, ...@@ -168,6 +171,9 @@ static int proc_ide_write_settings(struct file *file, const char __user *buffer,
ide_settings_t *setting; ide_settings_t *setting;
char *buf, *s; char *buf, *s;
printk(KERN_WARNING "Warning: /proc/ide/hd?/settings interface is "
"obsolete, and will be removed soon!\n");
if (!capable(CAP_SYS_ADMIN)) if (!capable(CAP_SYS_ADMIN))
return -EACCES; return -EACCES;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment