lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <E693AEE4-7895-4650-A1DC-1FB16D409D5B@ime.usp.br>
Date:	Sat, 18 Apr 2009 21:22:11 -0300
From:	Rogério Brito <rbrito@....usp.br>
To:	linux-kernel@...r.kernel.org
Subject: Quick question about libata and hdparm

Dear people,

I have one small question regarding the libata drivers and the  
interaction with hdparm.

I am presently using PATA/IDE devices only, but some distributions  
provide kernels with libata by default (and some defconfigs also use  
libata even for IDE devices).

Using the usual IDE drivers, I can use/query various parameters with  
hdparm, like, for instance, the -m option, the -c option or even  
disabling DMA. With the libata drivers, this is all that I get:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
lutz:~# hdparm /dev/sda

/dev/sda:
  IO_support    =  0 (default)
  readonly      =  0 (off)
  readahead     = 256 (on)
  geometry      = 48641/255/63, sectors = 781420655, start = 0
lutz:~# hdparm -c 1 /dev/sda

/dev/sda:
  setting 32-bit IO_support flag to 1
  HDIO_SET_32BIT failed: Invalid argument
  IO_support    =  0 (default)
lutz:~# hdparm -m 16 /dev/sda

/dev/sda:
  setting multcount to 16
  HDIO_SET_MULTCOUNT failed: Inappropriate ioctl for device
  HDIO_GET_MULTCOUNT failed: Inappropriate ioctl for device
lutz:~#
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Am I doing something incorrectly? I would like at least to understand  
what is happening and, if possible, to fine-tune some settings.

If necessary, please let me know and I will provide any further  
information that may be needed.


Thanks in advance, Rogério Brito.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ