If you like BoxMatrix then please contribute Supportdata, Supportdata2, Firmware and/or Hardware (get in touch).
My metamonk@yahoo.com is not reachable by me since september. Please use hippie2000@webnmail.de instead.

0
U

Property:fritznasdb (avmcmd)

From BoxMatrix


BoxMatrix >> Shell-Commands >> fritznasdb (avmcmd) @ BoxMatrix   -   IRC-Chat   -   Translate: de es fr it nl pl
News Selectors Models Accessories Components Environment Config Commands System Webif Software Develop Lexicon Community Project Gallery

Startup-Scr Hotplug-Scr BusyBox-Cmds Bash-Cmds AVM-Cmds Chipset-Cmds Linux-Cmds Shared-Libs Kernel-Mods Research

Info
  
Name-Collision - multiple objects in this wiki use the name fritznasdb!
fritznasdb (avmcmd) Daemon maintaining a Metatdata database of all files on the NAS.
fritznasdb (process) Media database server.

AVM-Command

Goto:   Endpoints  -  Events  -  Config  -  Source  -  Dependencies   -   Model-Matrix   -   Symbols   -   SMW-Browser

Details

fritznasdb is a daemon maintaining a Metatdata database of all files on the NAS.
It uses the Linux inotify API to get informed about changes on the monitored partitions.

The addition and removal of mounted partitions is tracked by fritznasdb_control, which also starts and stops fritznasdb.

Depending on the amount of partitions the Metatdata database is either a global db at FRITZ/mediabox/fritznasdb.db3,
or multiple partial databases stored at FRITZ/mediabox/fritznasdb_part.db3 on each partition.

fritznasdb uses various helper libraries for Metatdata extraction and Thumbnail creation, see the Dependencies below.

The database is maintained by libavmdb.so which uses the database engine libsqlite3.so.
libavmdb.so and libsqlite3.so are also used by the UPnP-AV server mediasrv and the supportdata helper showfritznasdbstat.

Besides local files fritznasdb can include Webradio and Podcast streams if the optional libstationurl.so is installed.

See also the inotify(7) man page.

fw 7.29 help:

root@fritz2:/var/mod/root# fritznasdb -?

usage: fritznasdb fritznasdb [options]

options:
  -?                 - print this help
  -f                 - run in forground. (NOTSET)
  -s                 - stop daemon. (NOTSET)
  -d STRING          - webserver directory. (NULL)
  -c                 - create maindb only (no indexation or creation of part.dbs). (NOTSET)
  -a                 - use auto index. (NOTSET)
  -i INTEGER         - set Inotify-Limitation (unlimited). (0)
  -v INTEGER         - set verbose mode. (0)
  -D STRING          - switch debug logs on. (FUNC)

start server:   fritznasdb
stop  server:   fritznasdb -s

Endpoints

msgsend endpoint(s) provided by fritznasdb, with these functions: (endpoints + commands, collected manually)

fritznasdb new_partition <part>        # from fritznasdb_control
fritznasdb lost_partition <part>       # from fritznasdb_control
fritznasdb remove_all_usb_partitions   # from fritznasdb_control
fritznasdb remove_all_partitions       # from fritznasdb_control
fritznasdb reload_config               # from fritznasdb_control

Events

Daily updated index of AVM-Events and AVMIPC-Datastore nodes affecting this command. Last update: 2023-01-31 06:33 GMT.
The owners of Event-Sinks and Event-Sources are manual research, which may be incomplete or even wrong.
A * in the Mod column marks info from Supportdata-Probes, which will always stay incomplete.
A ** in the Mod column marks info from Supportdata2 probes, which by their nature will stay way more incomplete.
A - in the Mod column marks manual research, the Firmware then shows where the item occurs, not the Relation.

Relation Typ Object Mod Firmware Info Origin
Endpoint sock me_fritznasdb.ctl 17* 6.04 - 7.50 avmipc endpoint of fritznasdb AVM
Listens to avmipc @ 2** 7.31 - 7.39 Special event for listeners of nameless private messages. AVM
2 event relations for this command

Config

Daily updated index of Configuration files accessed by this command. Last update: 2023-01-31 06:33 GMT.
A - in the Mod column marks manual research, the Firmware then shows where the item occurs, not the Relation.

Relation Typ Object Mod Firmware Info Origin
Config from tffs usb.cfg (tffs) - 4.69 - 7.51 TODO AVM
1 config relation for this command

Source

The names of source files compiled into an executable often help to understand function blocks (and show gaps in the docs).
fw 7.39 source files:

$ strings /sbin/fritznasdb | grep -e '\.c$' -e '\.cpp$'

fritznasdb/main.c
fritznasdb/asf_infos.c
fritznasdb/db_audio.c
fritznasdb/db_cache.c
fritznasdb/db_dir.c
fritznasdb/db_other.c
fritznasdb/playlist_infos.c
fritznasdb/db_playlist.c
fritznasdb/db_upnp_audio.c
fritznasdb/db_upnp_container.c
fritznasdb/db_upnp_playlist.c
fritznasdb/db_upnp_image.c
fritznasdb/db_upnp_video.c
fritznasdb/db_video.c
fritznasdb/db_doc.c
fritznasdb/db_partition.c
fritznasdb/db_image.c
fritznasdb/db_stations.c
fritznasdb/fs_content.c
fritznasdb/fs_scan.c
fritznasdb/fs_statistic.c
fritznasdb/fs_watcher.c
fritznasdb/ftwthread.c
fritznasdb/jpeg_infos.c
fritznasdb/mp3_infos.c
fritznasdb/png_infos.c
fritznasdb/scan_utils.c
fritznasdb/msgep_intf.c  

Dependencies

Daily updated index of all dependencies of this command. Last update: 2023-01-31 07:12 GMT.
A * in the Mod column marks info from Supportdata-Probes, which will always stay incomplete.

Relation Typ Object Mod Firmware Info Origin
Runs as proc fritznasdb (process) 17* 6.04 - 7.50 Daemon maintaining a Metatdata database of all files on the NAS. AVM
Serving sock me_fritznasdb.ctl 17* 6.04 - 7.50 avmipc endpoint of fritznasdb AVM
Depends on lib ld.so 22 7.08 - 7.51 Dynamic linker / loader Linux
Depends on lib libFLAC.so 23 5.27 - 6.07 Reference Codec for native and Ogg FLAC and its Metadata Linux
Depends on lib libavmasf.so 62 5.01 - 7.51 Metadata extractor for Microsoft audio and video formats AVM
Depends on lib libavmcsock.so 62 5.01 - 7.51 Networking, I/O and helper functions AVM
Depends on lib libavmdb.so 62 5.01 - 7.51 fritznasdb database engine AVM
Depends on lib libavmid3tag.so 62 5.01 - 7.51 ID3 tag Metadata reading library (3rd gen.) AVM
Depends on lib libboxlib.so 62 5.01 - 7.51 Box status, logging and statistics functions AVM
Depends on lib libc.so 62 5.01 - 7.51 Standard C library Linux
Depends on lib libdl.so 51 5.01 - 7.50 Dynamic linking library Linux
Depends on lib libewnwlinux.so 62 5.01 - 7.51 Linux networking functions AVM
Depends on lib libewnwnet.so 62 5.01 - 7.51 Internet helper functions AVM
Depends on lib libexif.so 62 5.01 - 7.51 EXIF Metadata parsing, editing, and saving Linux
Depends on lib libgcc_s.so 31 5.01 - 6.110 GCC low-level runtime library Linux
Depends on lib libintl.so 10 6.36 - 6.60 GNU gettext Internationalisation Linux
Depends on lib libm.so 53 5.01 - 7.50 C math library Linux
Depends on lib libmediautils.so 62 5.06 - 7.51 Media type detection and Thumbnail generation (2nd gen.) AVM
Depends on lib libmxml.so 62 5.01 - 7.51 Mini-XML parser / generator Linux
Depends on lib libpng14.so 1 5.01 - 5.04 Official PNG reference library LibPNG
Depends on lib libpng15.so 62 5.01 - 7.31 Official PNG reference library LibPNG
Depends on lib libpng16.so 26 7.39 - 7.51 Official PNG reference library LibPNG
Depends on lib libpthread.so 54 5.01 - 7.50 POSIX threading library Linux
Depends on lib libsqlite3.so 62 5.01 - 7.51 SQLite self-contained SQL database engine Linux
Depends on lib libusbcfg.so 62 5.04 - 7.51 TFFS-Configuration API to usb.cfg. AVM
Depends on lib libwdt.so 4 5.01 - 5.04 AVM-Watchdogs management API AVM
Depends on lib libz.so 50 6.35 - 7.51 Zlib compressor / decompressor Linux
27 dependencies for this command

Model-Matrix

Daily updated index of the presence, path and size of this command for each model. Last update: 2023-01-31 05:50 GMT.
Showing all models using this command. Click any column header (click-wait-click) to sort the list by the respective data.
The (main/scrpn/boot/arm/prx/atom) label in the Model column shows which CPU is meant for models with multiple Linux instances.
Note that this list is merged from Firmware-Probes of all known AVM firmware for a model, including Recovery.exe and Labor-Files.

Model Firmware Path Size
FRITZ!Box WLAN 3270 5.05 - 5.54 /sbin 107k - 114k
FRITZ!Box WLAN 3270 v3 5.05 - 5.54 /sbin 107k - 114k
FRITZ!Box WLAN 3270 IT 5.23 - 5.52 /sbin 110k - 114k
FRITZ!Box 3272 5.50 - 6.88 /sbin 99.4k - 112k
FRITZ!Box WLAN 3370 5.01 - 6.55 /sbin 90.6k - 115k
FRITZ!Box 3390 5.50 - 6.55 /sbin 90.6k - 112k
FRITZ!Box 3490 (main) 6.20 - 7.30 /sbin 111k - 147k
FRITZ!Box 4020 6.27 - 7.02 /sbin 111k
FRITZ!Box 4040 6.50 - 7.39 /sbin 92.1k - 114k
FRITZ!Box 4060 7.26 - 7.39 /sbin 110k
FRITZ!Box 5490 (main) 6.51 - 7.29 /sbin 111k - 147k
FRITZ!Box 5491 (main) 7.01 - 7.29 /sbin 111k - 147k
FRITZ!Box 5590 Fiber (arm) 7.27 - 7.39 /sbin 110k
FRITZ!Box 6360 Cable 5.05 - 6.51 /sbin 71.5k - 100k
FRITZ!Box 6430 Cable (arm) 6.84 - 7.29 /sbin 111k - 138k
FRITZ!Box 6430 Cable (atom) 6.84 - 7.29 /sbin 111k - 138k
FRITZ!Box 6490 Cable (arm) 6.20 - 7.39 /sbin 100k - 138k
FRITZ!Box 6490 Cable (atom) 6.20 - 7.39 /sbin 111k - 138k
FRITZ!Box 6590 Cable (arm) 6.83 - 7.39 /sbin 111k - 138k
FRITZ!Box 6590 Cable (atom) 6.83 - 7.39 /sbin 111k - 138k
FRITZ!Box 6591 Cable (arm) 7.04 - 7.39 /sbin 127k - 146k
FRITZ!Box 6591 Cable (atom) 7.04 - 7.39 /sbin 127k - 146k
FRITZ!Box 6660 Cable (arm) 7.14 - 7.39 /sbin 127k - 146k
FRITZ!Box 6660 Cable (atom) 7.14 - 7.39 /sbin 127k - 146k
FRITZ!Box 6690 Cable (arm) 7.28 - 7.50 /sbin 138k - 146k
FRITZ!Box 6690 Cable (atom) 7.28 - 7.50 /sbin 138k - 146k
FRITZ!Box 6840 LTE 5.07 - 6.87 /sbin 90.5k - 115k
FRITZ!Box 6842 LTE 6.01 - 6.34 /sbin 90.6k - 115k
FRITZ!Box 6850 LTE 7.21 - 7.39 /sbin 106k - 147k
FRITZ!Box 6850 5G 7.24 - 7.39 /sbin 110k - 114k
FRITZ!Box 6890 LTE 6.84 - 7.39 /sbin 135k - 147k
FRITZ!Box 6890 LTE v1 6.84 - 7.39 /sbin 135k - 147k
FRITZ!Box 6890 LTE v2 6.84 - 7.39 /sbin 135k - 147k
FRITZ!Box Fon WLAN 7240 5.04 - 6.06 /sbin 104k - 139k
FRITZ!Box Fon WLAN 7270 v2 5.01 - 6.06 /sbin 102k - 139k
FRITZ!Box Fon WLAN 7270 v3 5.01 - 6.06 /sbin 99.3k - 139k
FRITZ!Box 7272 5.55 - 6.88 /sbin 99.4k - 115k
FRITZ!Box Fon WLAN 7320 5.09 - 6.34 /sbin 90.6k - 112k
FRITZ!Box 7330 5.06 - 6.55 /sbin 90.6k - 112k
FRITZ!Box 7330 SL 5.08 - 6.55 /sbin 90.6k - 112k
FRITZ!Box Fon WLAN 7340 5.04 - 6.06 /sbin 99.3k - 115k
FRITZ!Box Fon WLAN 7360 SL 5.04 - 6.34 /sbin 90.6k - 115k
FRITZ!Box Fon WLAN 7360 v1 5.06 - 6.35 /sbin 90.6k - 112k
FRITZ!Box Fon WLAN 7360 v2 5.22 - 6.87 /sbin 90.6k - 115k
FRITZ!Box 7362 SL 5.53 - 7.13 /sbin 90.6k - 119k
FRITZ!Box 7369 6.30 - 6.32 /sbin 111k
FRITZ!Box Fon WLAN 7390 5.01 - 6.87 /sbin 90.5k - 115k
FRITZ!Box 7430 6.26 - 7.29 /sbin 111k - 147k
FRITZ!Box 7490 (main) 5.57 - 7.51 /sbin 99.4k - 147k
FRITZ!Box 7510 7.30 - 7.39 /sbin 110k
FRITZ!Box 7520 6.98 - 7.50 /sbin 92.1k - 114k
FRITZ!Box 7520 v2 (arm) 7.30 - 7.50 /sbin 110k - 114k
FRITZ!Box 7530 6.93 - 7.51 /sbin 92.0k - 114k
FRITZ!Box 7530 AX 7.20 - 7.39 /sbin 110k - 114k
FRITZ!Box 7560 6.51 - 7.29 /sbin 135k - 147k
FRITZ!Box 7580 6.51 - 7.29 /sbin 135k - 147k
FRITZ!Box 7581 6.54 - 7.16 /sbin 95.2k - 114k
FRITZ!Box 7582 6.83 - 7.16 /sbin 95.2k - 114k
FRITZ!Box 7583 7.01 - 7.31 /sbin 135k - 147k
FRITZ!Box 7583 VDSL 7.19 - 7.31 /sbin 147k
FRITZ!Box 7590 6.83 - 7.51 /sbin 135k - 147k
FRITZ!Box 7590 AX 7.19 - 7.39 /sbin 143k - 147k
62 models use this command

Symbols

Daily updated index of all symbols of this command. Last update: 2023-01-31 07:12 GMT.

Firmware Symbol
5.07 - 6.20 BackslashOrSlash
6.10 - 7.51 avmipc_intf_deinit
6.10 - 7.51 avmipc_intf_init
6.10 - 6.93 avmipc_report_fritznasdb_running
6.10 - 7.51 avmipc_send
6.10 - 6.93 clean_libflac_ctx
5.01 - 7.51 convert_date_to_iso8601
6.10 - 7.51 convert_slash_in_path
5.01 - 7.51 create_date_string
5.01 - 7.51 create_time_string
5.01 - 7.51 db_audio_add
5.01 - 7.51 db_audio_move
5.01 - 7.51 db_audio_remove
5.04 - 7.51 db_audio_remove_by_audioinfo
5.01 - 7.51 db_audio_rename
5.01 - 7.51 db_audio_update
5.01 - 7.51 db_cache_add_audio
5.01 - 7.51 db_cache_clean
5.01 - 7.51 db_cache_find_audio
5.01 - 7.51 db_cache_free_audio
5.04 - 7.51 db_cache_init
5.01 - 7.51 db_cache_remove_entry
5.01 - 7.51 db_dir_add
5.01 - 5.06 db_dir_get_path_by_watchid
5.01 - 7.51 db_dir_move
5.01 - 7.51 db_dir_remove
5.01 - 7.51 db_dir_rename
5.01 - 7.51 db_dir_update
5.01 - 7.51 db_doc_add
5.01 - 7.51 db_doc_move
5.01 - 7.51 db_doc_remove
5.01 - 7.51 db_doc_rename
5.01 - 7.51 db_doc_update
5.01 - 7.51 db_image_add
5.01 - 7.51 db_image_move
5.01 - 7.51 db_image_remove
5.04 - 7.51 db_image_remove_by_imageinfo
5.01 - 7.51 db_image_rename
5.01 - 7.51 db_image_update
5.01 - 6.30 db_link_add
5.01 - 6.30 db_link_move
5.01 - 6.30 db_link_remove
5.01 - 6.30 db_link_rename
5.01 - 6.30 db_link_update
5.01 - 7.51 db_other_add
5.01 - 7.51 db_other_move
5.01 - 7.51 db_other_remove
5.01 - 7.51 db_other_rename
5.01 - 7.51 db_other_update
5.01 - 7.51 db_partition_add
5.01 - 7.51 db_partition_add_all
5.01 - 5.54 db_partition_reinit
5.01 - 7.51 db_partition_remove
5.01 - 7.51 db_partition_remove_all
5.01 - 7.51 db_partition_remove_usb
5.01 - 7.51 db_playlist_add
5.01 - 7.51 db_playlist_move
5.07 - 7.51 db_playlist_process_entries
5.01 - 7.51 db_playlist_remove
5.06 - 7.51 db_playlist_remove_by_fileinfo
5.01 - 7.51 db_playlist_rename
5.01 - 7.51 db_playlist_update
5.55 - 7.51 db_stations_actualization_necessary
6.10 - 7.51 db_stations_create_intmem_audio_trigger_and_switch_dbs
5.50 - 7.51 db_stations_deinit
5.50 - 7.51 db_stations_free_db_stations
5.51 db_stations_get_actual_stations
5.50 - 7.51 db_stations_get_current_stations
5.50 - 7.51 db_stations_get_db_stations
5.50 - 7.51 db_stations_init
5.50 - 7.51 db_stations_processing_finished
5.55 - 7.51 db_stations_remove_actualization_timestamp
5.50 - 7.51 db_stations_set_partinfo
5.55 - 7.51 db_stations_store_already_retrieved_stations
6.10 - 7.51 db_stations_switch_intmem_dbs
5.55 - 7.51 db_stations_update
5.50 - 5.51 db_stations_update_podcast_urls
5.50 - 5.51 db_stations_update_webradio_urls
5.51 db_upnp_audio_add_entry_to_menu_music_podcasts
5.51 db_upnp_audio_add_entry_to_menu_music_webradio
5.50 - 7.51 db_upnp_audio_add_entry_to_menu_podcasts
5.50 - 7.51 db_upnp_audio_add_entry_to_menu_webradio
5.01 - 7.51 db_upnp_audio_added
5.04 - 7.51 db_upnp_audio_moved
5.01 - 7.51 db_upnp_audio_removed
5.01 - 7.51 db_upnp_container_add_entry_to_directory_container
5.50 db_upnp_container_change_parent_id
5.01 - 5.04 db_upnp_container_create_menu_entries
5.01 - 7.51 db_upnp_container_dec_childcount_by_id
5.01 - 7.51 db_upnp_container_get_contid_by_expr
5.01 - 7.51 db_upnp_container_inc_childcount_by_id
5.01 - 7.51 db_upnp_container_move_directory_container
5.01 - 7.51 db_upnp_container_remove_empty_container_recursive
5.01 - 7.51 db_upnp_container_rename_directory_container
5.06 - 7.51 db_upnp_get_changed_system_update_id
5.01 - 7.51 db_upnp_image_added
5.04 - 7.51 db_upnp_image_moved
5.01 - 7.51 db_upnp_image_removed
5.06 - 7.51 db_upnp_inc_system_update_id
5.07 - 7.51 db_upnp_playlist_container_add
5.07 - 7.51 db_upnp_playlist_container_remove
5.01 - 7.51 db_upnp_video_added
5.04 - 7.51 db_upnp_video_moved
5.01 - 7.51 db_upnp_video_removed
5.01 - 7.51 db_video_add
5.01 - 7.51 db_video_move
5.01 - 7.51 db_video_remove
5.04 - 7.51 db_video_remove_by_videoinfo
5.01 - 7.51 db_video_rename
5.01 - 7.51 db_video_update
5.01 - 7.51 fill_file_info
5.01 - 7.51 fill_file_info_lost
5.04 - 7.51 fill_file_info_without_inotify_check
5.04 - 7.51 finish_activity
5.01 - 7.51 fs_content_add
5.01 - 7.51 fs_content_move
5.01 - 7.51 fs_content_print_itemcount
5.01 - 7.51 fs_content_remove
5.04 - 7.51 fs_content_remove_by_expr
5.01 - 7.51 fs_content_rename
5.01 - 7.51 fs_scan_deinit
5.04 - 7.51 fs_scan_in_progress
5.01 - 7.51 fs_scan_init
5.01 - 7.51 fs_scan_notify_lost_partition
5.01 - 7.51 fs_scan_notify_new_partition
5.01 - 5.54 fs_scan_reinit_current_partition
5.01 - 7.51 fs_statistic_deinit
5.04 - 7.51 fs_statistic_init
5.50 - 7.51 fs_statistic_reset
5.01 fs_statistic_set_scan_entry_failure
5.01 - 7.51 fs_statistic_set_scan_status_aborted
5.01 - 7.51 fs_statistic_set_scan_status_complete
5.01 - 7.51 fs_statistic_set_scan_status_manual_init
5.01 - 7.51 fs_statistic_set_scan_status_running
5.01 fs_statistic_set_scan_walk_failure
5.01 fs_statistic_udate_scan_status
5.06 - 5.54 fs_statistic_update_autoindex_value
5.55 - 7.51 fs_statistic_update_fritznasdb_run_mode
5.01 - 7.51 fs_statistic_update_last_db_error
5.01 - 7.51 fs_statistic_update_last_scanned_entry
5.01 - 5.06 fs_statstic_init
5.01 - 7.51 fs_watcher_add
5.01 - 7.51 fs_watcher_deinit
5.01 - 5.06 fs_watcher_get_id
7.19 - 7.51 fs_watcher_ignore_file
5.01 - 7.51 fs_watcher_init
5.04 - 5.08 fs_watcher_is_active
5.01 - 7.51 fs_watcher_remove
5.01 - 7.51 ftwthread_start
5.01 - 7.51 ftwthread_stop
5.07 - 6.06 get_count_of_digits
5.50 - 7.51 get_datetime_from_unixtime
5.01 - 6.64 get_file_extension
5.01 - 7.51 get_file_name_from_path
7.08 - 7.51 get_media_dir_utf8
5.01 - 7.51 get_parent_path
5.01 - 7.51 get_time_from_string
5.01 - 5.08 is_asf_file
5.07 - 5.08 is_audio_file
5.07 - 5.08 is_doc_file
5.07 - 5.08 is_image_file
5.01 - 5.08 is_jpeg_file
5.01 - 5.08 is_mp3_file
5.07 - 5.08 is_playlist_file
5.01 - 5.08 is_png_file
5.01 - 7.51 is_scan_in_progress
5.07 - 5.08 is_video_file
5.01 - 5.08 is_wma_file
5.01 - 5.08 is_wmv_file
5.01 - 7.51 main
5.01 - 6.06 msgep_intf_deinit
5.01 - 6.06 msgep_intf_init
5.06 - 6.06 msgep_intf_msg_send
5.01 - 7.51 read_asfaudio_infos
5.01 - 7.51 read_asfvideo_infos
5.27 - 6.93 read_flac_infos
5.01 - 7.51 read_jpeg_infos
5.01 - 7.51 read_mp3_infos
5.07 - 7.51 read_playlist_infos
5.01 - 7.51 read_png_infos
5.01 - 6.64 replace_first_char
5.01 - 6.64 replace_last_char
5.01 - 7.51 set_path_of_onlinestore
7.19 trigger_reload_config
5.01 - 7.51 validate_and_copy_string
5.04 - 7.51 wait_for_reader_if_necessary
186 symbols for this command

SMW-Browser

Information is currently being retrieved from the backend.