Re: stat64() calls of files in underlaying directories?
"Guus Houtzager - Luna.nl" <[email protected]> Tue, 12 Jul 2005 19:21:14 +0200
| Newsgroups | gmane.comp.gnome.apps.gqview.user |
|---|---|
| Organization | Luna.nl BV |
| Message-ID | <1121188874.2662.56.camel@localhost> |
Hi, On Tue, 2005-07-12 at 12:44 -0400, John Ellis wrote: > Guus Houtzager wrote: > > > > What happens is if I'm looking at /pictures/holiday/2004 and switch > > to /pictures/holiday/2005 gqview starts doing stat64() calls (confirmed > > with strace -p on the process) on all files in /pictures. That takes > > more than a minute and is very annoying to say the least and happens on > > every directory switch. > > Any idea why gqview is doing this? More information available on > > request. > > When selecting a new folder, the folder tree view will update it's contents > along the complete path to the new location - regardless if the time stamps for > those folders have changed. If you have time and/or install GQview from source > the attached patch may help. If the patch fixes this issue please indicate this > so that I can include the patch in the next release. > > (If this does not apply because you do not use the folder tree view, then > something is definitely broken in GQview and I will need more information about > your GQview config [~/.gqview/gqviewrc] ) Thanks for your quick respons and patch. I tried it out and it works, somewhat. I applied your patch to the source of the debian 2.0.0 package, not the cvs version. What happens now is that if nothing happens to the underlaying directory (/pictures) and I switch between folders, the switch is quick, no stat64()'s being executed. But the stat64()'s happen in this situation: I'm watching the /pictures/holiday/2004 folder. Then I copy some files in a shell with cp from /pictures to /pictures/holiday/2005. When that completes, I switch in gqview to /pictures/holiday/2005. Then I see stat64() calls on /pictures. I think I'm using folder tree view, but I'm not sure, so I'm attaching a small screenshot which should clear that up for you. Just to be sure I'll also attach my gqviewrc. > Greetings, > John Thanks! PS: direct mail to you doesn't work for me because I'm not on verizon's whitelist :( As I understand it, lot's of European ISP's aren't :( Regards, -- Guus Houtzager Email: [email protected] PGP fingerprint = 5E E6 96 35 F0 64 34 14 CC 03 2B 36 71 FB 4B 5D Early to rise, early to bed, makes a man healthy, wealthy and dead. --Rincewind, The Light Fantastic
Screenshot.jpg
(image/jpeg, 57.8 KB) - not displayed
gqviewrc
(text/plain, 4.1 KB)
###################################################################### # GQview config file version 2.0.0 # ###################################################################### ##### General Options ##### layout_style: 0 layout_order: "123" layout_view_as_icons: false layout_view_as_tree: true show_icon_names: true tree_descend_folders: false lazy_image_sync: false update_on_time_change: true exif_auto_rotate: true enable_startup_path: false startup_path: zoom_mode: fit two_pass_scaling: true zoom_to_fit_allow_expand: true fit_window_to_image: false limit_window_size: false max_window_size: 100 progressive_keyboard_scrolling: false scroll_reset_method: 0 enable_thumbnails: false thumbnail_width: 64 thumbnail_height: 64 cache_thumbnails: false cache_thumbnails_into_dirs: false use_xvpics_thumbnails: true thumbnail_spec_standard: true local_metadata: false sort_method: 3 sort_ascending: true sort_case_sensitive: false confirm_delete: false enable_delete_key: true safe_delete: false safe_delete_path: "/home/guus/.gqview/trash" safe_delete_size: 20 tools_float: false tools_hidden: false restore_tool_state: false toolbar_hidden: false mouse_wheel_scrolls: true in_place_rename: true open_recent_max: 10 image_cache_size_max: 10 thumbnail_quality: 0 zoom_quality: 2 dither_quality: 2 zoom_increment: 5 enable_read_ahead: true display_dialogs_under_mouse: false black_window_background: false fullscreen_screen: -1 fullscreen_clean_flip: false fullscreen_disable_saver: true fullscreen_above: false custom_similarity_threshold: 99 ##### Slideshow Options ##### slideshow_delay: 15.0 slideshow_random: false slideshow_repeat: false ##### Filtering Options ##### show_dotfiles: false disable_filtering: true filter_ext: "png" ".png" "The PNG image format" filter_ext: "jpeg" ".jpeg;.jpe;.jpg" "The JPEG image format" filter_ext: "gif" ".gif" "The GIF image format" filter_ext: "ico" ".ico;.cur" "The ICO image format" filter_ext: "ani" ".ani" "The ANI image format" filter_ext: "ras" ".ras" "The Sun raster image format" filter_ext: "xpm" ".xpm" "The XPM image format" filter_ext: "tiff" ".tiff;.tif" "The TIFF image format" filter_ext: "pnm" ".pnm;.pbm;.pgm;.ppm" "The PNM/PBM/PGM/PPM image format family" filter_ext: "bmp" ".bmp" "The BMP image format" filter_ext: "wbmp" ".wbmp" "The WBMP image format" filter_ext: "xbm" ".xbm" "The XBM image format" filter_ext: "tga" ".tga;.targa" "The Targa image format" filter_ext: "svg" ".svg;.svgz" "Scalable Vector Graphics" filter_ext: "pcx" ".pcx" "The PCX image format" filter_ext: "wmf" ".wmf" "Windows Metafile" ##### External Programs ##### # Maximum of 8 programs (external_1 through external 8) # format: external_n: "menu name" "command line" external_1: "The Gimp" "gimp-remote-1.3 -n %f" external_2: "Electric Eyes" "eeyes" external_3: "XV" "xv" external_4: "Xpaint" "xpaint %f" external_5: "Xine" "xine -p %f" external_6: "Rhythmbox" "rhythmbox %f" external_7: "Mplayer" "gmplayer %f" external_8: "" "" external_9: "Rotate jpeg clockwise" "%vif jpegtran -rotate 90 -copy all -outfile %p_tmp %p; then mv %p_tmp %p;else rm %p_tmp;fi" external_10: "Rotate jpeg counterclockwise" "%vif jpegtran -rotate 270 -copy all -outfile %p_tmp %p; then mv %p_tmp %p;else rm %p_tmp;fi" ##### Collection Options ##### rectangular_selections: false ##### Window Positions ##### restore_window_positions: true main_window_x: 44 main_window_y: 30 main_window_width: 1141 main_window_height: 917 main_window_maximized: false float_window_x: 64 float_window_y: 0 float_window_width: 224 float_window_height: 450 float_window_divider: 200 divider_position_h: 284 divider_position_v: 248 ###################################################################### # end of GQview config file # ######################################################################
signature.asc
(application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQBC0/wKd/eI7GTyrJ8RAlPmAJ9lgs5PP9suQJvGVe3R+Dfq3Xa1GwCfTGDe 1YhMDS4LmY+BnGrfN2mdFeA= =yJRR -----END PGP SIGNATURE-----