Re: [systemd-devel] udevd detect and list ata devices

2015-12-06 Thread Marek
why not use cleints such as google mail instead of daringfireball.net? On Sun, Dec 6, 2015 at 5:59 PM, Greg KH wrote: > A: No. > Q: Should I include quotations after my reply? > > http://daringfireball.net/2007/07/on_top > > On Sun, Dec 06, 2015 at 05:51:11PM +0100,

Re: [systemd-devel] udevd detect and list ata devices

2015-12-06 Thread Marek
thanks Robert, eample2 does list all disks but doens't differentiate between ata and usb. On Sun, Dec 6, 2015 at 10:49 AM, Robert Milasan wrote: > On Sun, 6 Dec 2015 01:49:41 +0100 > "Marek" wrote: > >> >> udev_device_get_sysname(block) >>

Re: [systemd-devel] udevd detect and list ata devices

2015-12-06 Thread Greg KH
On Sun, Dec 06, 2015 at 05:38:37PM +0100, Marek wrote: > i'm trying to get only ata devices because my application requires i > only list disks that are sata drives inside the computer. Why would an application care about the type of a drive inside of a computer? What about sata drives outside

Re: [systemd-devel] udevd detect and list ata devices

2015-12-06 Thread Marek
those too :) but it's a rare situation. On Sun, Dec 6, 2015 at 5:48 PM, Greg KH wrote: > On Sun, Dec 06, 2015 at 05:38:37PM +0100, Marek wrote: >> i'm trying to get only ata devices because my application requires i >> only list disks that are sata drives inside the

Re: [systemd-devel] udevd detect and list ata devices

2015-12-06 Thread Marek
i'm trying to get only ata devices because my application requires i only list disks that are sata drives inside the computer. On Sun, Dec 6, 2015 at 2:37 AM, Greg KH wrote: > On Sun, Dec 06, 2015 at 01:49:41AM +0100, Marek wrote: >> > >> /sys/ >> > And "ata" devices

Re: [systemd-devel] udevd detect and list ata devices

2015-12-06 Thread Greg KH
A: No. Q: Should I include quotations after my reply? http://daringfireball.net/2007/07/on_top On Sun, Dec 06, 2015 at 05:51:11PM +0100, Marek wrote: > those too :) but it's a rare situation. Programs are all about having to handle the "rare" situations properly. And you didn't say _why_ you

[systemd-devel] question about the conditions for bus_enter_closing()

2015-12-06 Thread eshark
Hi, All          In the sd-bus.c, there are four conditions for calling the bus_enter_closing, as is:                          if (r == -ENOTCONN || r == -ECONNRESET || r == -EPIPE || r == -ESHUTDOWN) {                                    bus_enter_closing(bus);                                

Re: [systemd-devel] udevd detect and list ata devices

2015-12-06 Thread Robert Milasan
On Sun, 6 Dec 2015 01:49:41 +0100 "Marek" wrote: > > udev_device_get_sysname(block) > /sys/devices/pci:00/:00:11.0/ata1/host0/target0:0:0/0:0:0:0/block/sda > /sys/devices/pci:00/:00:12.2/usb1/1-1/1-1:1.0/host8/target8:0:0/8:0:0:0/block/sdg Try this examples:

Re: [systemd-devel] systemd-cgtop vs docker-stats

2015-12-06 Thread Tiago Alves
> > > "systemd-cgtop -n2 -b > test" is not showing cpu usage, neither > "var=$(systemd-cgtop -n2 -b) > > It seems that systemd 225 can now handle shell stdout redirection (showing CPU usage) like "systemd-cgtop -n2 -b > test", but it is outputting every interaction to the file. It is possible to

Re: [systemd-devel] udevd detect and list ata devices

2015-12-06 Thread Steve Abner
On 12/06/2015 11:46 AM, Marek wrote: thanks Robert, eample2 does list all disks but doens't differentiate between ata and usb. On Sun, Dec 6, 2015 at 10:49 AM, Robert Milasan wrote: On Sun, 6 Dec 2015 01:49:41 +0100 "Marek" wrote:

Re: [systemd-devel] udevd detect and list ata devices

2015-12-06 Thread Robert Milasan
On Sun, 6 Dec 2015 17:46:09 +0100 "Marek" wrote: > thanks Robert, eample2 does list all disks but doens't differentiate > between ata and usb. You could add a little hack like this in the udev_example2.c code: if (strstr(udev_device_get_syspath(dev), "/ata") != NULL) {