Re: [systemd-devel] [PATCH 2/6] readahead-common:fs_on_ssd() stat might not get the real device name

2010-09-26 Thread Lennart Poettering
On Fri, 24.09.10 12:22, Kay Sievers (kay.siev...@vrfy.org) wrote: On Fri, Sep 24, 2010 at 12:06, har...@redhat.com wrote: From: Harald Hoyer har...@redhat.com btrfs returns a major(0) for its device, so try to find the mountpoint and real device. +        fp =

Re: [systemd-devel] [PATCH 2/6] readahead-common:fs_on_ssd() stat might not get the real device name

2010-09-26 Thread Kay Sievers
On Mon, Sep 27, 2010 at 02:00, Lennart Poettering lenn...@poettering.net wrote: On Fri, 24.09.10 12:22, Kay Sievers (kay.siev...@vrfy.org) wrote: On Fri, Sep 24, 2010 at 12:06,  har...@redhat.com wrote: From: Harald Hoyer har...@redhat.com btrfs returns a major(0) for its device, so try

Re: [systemd-devel] [PATCH 2/6] readahead-common:fs_on_ssd() stat might not get the real device name

2010-09-24 Thread Kay Sievers
On Fri, Sep 24, 2010 at 12:06, har...@redhat.com wrote: From: Harald Hoyer har...@redhat.com btrfs returns a major(0) for its device, so try to find the mountpoint and real device. +        fp = fopen(/proc/self/mountinfo, r); +        if (fp == NULL) +                return NULL; +    

Re: [systemd-devel] [PATCH 2/6] readahead-common:fs_on_ssd() stat might not get the real device name

2010-09-24 Thread Tomasz Torcz
On Fri, Sep 24, 2010 at 12:22:34PM +0200, Kay Sievers wrote: On Fri, Sep 24, 2010 at 12:06, har...@redhat.com wrote: From: Harald Hoyer har...@redhat.com btrfs returns a major(0) for its device, so try to find the mountpoint and real device. +        fp = fopen(/proc/self/mountinfo,

Re: [systemd-devel] [PATCH 2/6] readahead-common:fs_on_ssd() stat might not get the real device name

2010-09-24 Thread Kay Sievers
2010/9/24 Tomasz Torcz to...@pipebreaker.pl: On Fri, Sep 24, 2010 at 12:22:34PM +0200, Kay Sievers wrote: On Fri, Sep 24, 2010 at 12:06,  har...@redhat.com wrote: From: Harald Hoyer har...@redhat.com btrfs returns a major(0) for its device, so try to find the mountpoint and real device.