Flexible I/O Tester development
 help / color / mirror / Atom feed
* FIO bug
@ 2010-02-05 23:30 H. Tolley
  2010-02-06 22:36 ` Jens Axboe
  0 siblings, 1 reply; 3+ messages in thread
From: H. Tolley @ 2010-02-05 23:30 UTC (permalink / raw)
  To: fio


The function static void get_file_system_type(struct fio_file *f)�� (in file filesetup.c)
has a call to lstat(..) which if given a symbolic link will give information about the link 
instead of information about the target of the link.� In Solaris it is very common that the 
disk device nodes in /dev/dsk/ are symbolic links to files in /devices/... and so the call 
to lstat(..) will not properly identify a file as a block device instead of a normal file.� 

A call to stat(..) on a filename that represents a block device will not return the proper 
size on Solaris.� Combined with the above-mentioned mis-identification of a link to a 
block device as a normal file, the function file_size(..) is invoked rather than a call
to bdev_size(..) and fio will not run properly.

Fix: Can the call to lstat(..) in get_file_system_type(..) be replaced by a call to stat(..)?

This happens on Open Solaris v10 x86_64.

Hal Tolley
 		 	   		  
_________________________________________________________________
Your E-mail and More On-the-Go. Get Windows Live Hotmail Free.
http://clk.atdmt.com/GBL/go/201469229/direct/01/

^ permalink raw reply	[flat|nested] 3+ messages in thread
[parent not found: <CAP8ELLWHUR5_Zia8X03eOotDUW8M-5u3pA_ie=sXD8cvwh1e5g@mail.gmail.com>]

end of thread, other threads:[~2016-06-28  5:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-05 23:30 FIO bug H. Tolley
2010-02-06 22:36 ` Jens Axboe
     [not found] <CAP8ELLWHUR5_Zia8X03eOotDUW8M-5u3pA_ie=sXD8cvwh1e5g@mail.gmail.com>
2016-06-27 21:20 ` Fwd: fio bug Frank Londono
2016-06-28  5:26   ` Sitsofe Wheeler

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox