----- Original Message -----
> From: chru...@suse.cz
> To: "Jan Stancek" <jstan...@redhat.com>
> Cc: ltp-list@lists.sourceforge.net
> Sent: Monday, 25 August, 2014 2:55:32 PM
> Subject: Re: [LTP] [PATCH v2] lib/rmobj: avoid using lstat
> 
> Hi!
> > rmobj() is failing for _64 version of testcases, which use large
> > files, where it hits EOVERFLOW in lstat():
> > 
> > open12      0  TWARN  :  tst_tmpdir.c:206: tst_rmdir: rmobj(/tmp/opexIqjV3)
> > failed:
> >        lstat(/tmp/opexIqjV3/large_file) failed; errno=75:
> >        Value too large for defined data type
> > 
> > Avoid using any *stat functions, instead try to open "obj"
> > with open(O_DIRECTORY | O_NOFOLLOW,..). If it succeeds,
> > we know we are dealing with directory, otherwise assume
> > it's a file or symlink.
> > 
> > Signed-off-by: Jan Stancek <jstan...@redhat.com>
> 
> This builds fine back to the SLES9 and works also fine. Acked.

Pushed.

Regards,
Jan

> 
> --
> Cyril Hrubis
> chru...@suse.cz
> 

------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to