Only use file size for regular files. Allow seeking block devices.