[nSLUG] Qry (1 of 2): Writing /proc/ide/ide1/hdd/settings?

Jamie Fifield jamie at fifield.ca
Sun Oct 26 01:24:38 ADT 2003


See drivers/ide/ide-proc.c:

 * Drive/Driver settings can be retrieved by reading the drive's
 * "settings" files.  e.g.    "cat /proc/ide0/hda/settings"
 * To write a new value "val" into a specific setting "name", use:
 *   echo "name:val" >/proc/ide/ide0/hda/settings


Good question though!


On Sat, Oct 25, 2003 at 03:44:57PM -0300, Mike Spencer wrote:
> 
> How do I write to /proc/ide/ide1/hdd/settings?
> 
>     bogus% cat /proc/ide/ide1/hdd/settings
> 
> returns a tidy table like this:
> 
> name                  value             min             max        mode
> ----                  -----             ---             ---        ----
> breada_readahead        4               0               127             rw
> dsc_overlap             0               0               1               rw
> file_readahead          72              0               2097151         rw
> io_32bit                0               0               3               rw
> keepsettings            0               0               1               rw
> max_kb_per_request      122             1               127             rw
> nice1                   1               0               1               rw
> pio_mode                write-only      0               255             w
> slow                    0               0               1               rw
> unmaskirq               0               0               1               rw
> using_dma               1               0               1               rw
> 
> I just want to set "slow" on (i.e., to 1) but this:
> 
>    root> echo 1 > /proc/ide/ide1/hdd/settings/slow
> 
> provokes:
> 
>    bash: /proc/ide/ide1/hdd/settings/slow: Not a directory
> 
> How do I do that without mucking about with the other settings?  Do I
> have to grok the details of the kernel source just to do this?  Surely
> not.
> 
> - Mike
> 
> -- 
> Michael Spencer                  Nova Scotia, Canada       .~. 
>                                                            /V\ 
> mspencer at tallships.ca                                     /( )\
> http://home.tallships.ca/mspencer/                        ^^-^^
> 
> -- 
> 
> 
> _______________________________________________
> nSLUG mailing list
> nSLUG at nslug.ns.ca
> http://nslug.ns.ca/cgi-bin/mailman/listinfo/nslug

-- 
Jamie Fifield
<jamie at fifield.ca>




More information about the nSLUG mailing list