[mythtv-users] F8 errors when running SVN console

David George david at thegeorges.us
Sun Dec 9 06:31:43 UTC 2007


On 12/08/2007 10:56 PM, Mitch Gore wrote:
> Hi,
>
> I just upgraded my box to Fedora 8.  After importing all my 
> settings/DB and rebuilding SVN I have one issue....
>
>
> When started mythfrontend this is spewed to the console.
>
> 2007-12-08 21:53:20.795 MythMediaDevice, Error:  readlink() failed for 
> devpts:
>                         eno: No such file or directory (2)
> 2007-12-08 21:53:20.795 MythMediaDevice, Error:  readlink() failed for 
> tmpfs:
>                         eno: No such file or directory (2)
> 2007-12-08 21:53: 20.795 MythMediaDevice, Error:  readlink() failed 
> for /dev/sdb1:
>                         eno: Invalid argument (22)
> 2007-12-08 21:53:20.795 MythMediaDevice, Error:  readlink() failed for 
> /dev/sdc3:
>                         eno: Invalid argument (22)
> 2007-12-08 21:53:20.795 MythMediaDevice, Error:  readlink() failed for 
> none:
>                         eno: No such file or directory (2)
> 2007-12-08 21:53:20.796 MythMediaDevice, Error:  readlink() failed for 
> sunrpc:
>                         eno: No such file or directory (2)
> 2007-12-08 21:53:20.796 MythMediaDevice, Error:  readlink() failed for 
> /etc/auto.misc:
>                         eno: Invalid argument (22)
> 2007-12-08 21:53: 20.796 MythMediaDevice, Error:  readlink() failed 
> for -hosts:
>                         eno: No such file or directory (2)
> 2007-12-08 21:53:20.796 MythMediaDevice, Error:  readlink() failed for 
> rootfs:
>                         eno: No such file or directory (2)
> 2007-12-08 21:53:20.796 MythMediaDevice, Error:  readlink() failed for 
> /dev/root:
>                         eno: Invalid argument (22)
> 2007-12-08 21:53:20.796 MythMediaDevice, Error:  readlink() failed for 
> /dev:
>                         eno: Invalid argument (22)
>
>
> Constant scrolling of this.  What is this?  how do i get rid of it?  
> FE still works but junk to the console is never a *good* thing.

I haven't tried it myself, but just looking at what the patch changed I 
would edit the mythtv/libs/libmyth/mythmedia.cpp file and add the 
following code before the VERBOSE in the if (len < 0) condition after 
the readlink:

if (errno != 2 && errno != 22)

So the section would now look like:

ssize_t len = readlink(DeviceName.local8Bit(), lpath, PATH_MAX);
if (len < 0)
{
  if (errno != ENOENT && errno != EINVAL)
    VERBOSE(VB_IMPORTANT, LOC_ERR + "readlink() failed: " + ENO);
  continue;
}

I would imagine ENOENT and EINVAL could be normal returns if it is 
checking directories that don't exist or are the wrong type.

Copying to the dev list as it is related to SVN.

--
David



More information about the mythtv-users mailing list