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 years. 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 Media

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) Process running fritznasdb

AVM-Command

Goto:   Endpoints  -  Events  -  Config  -  Logs  -  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-12-10 05:13 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 16* 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: 2024-11-21 07:09 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 - 8.00 TODO AVM
1 config relation for this command

Logs

This is a subset of the Temp-Files section, filtered for logfiles of fritznasdb:

Daily updated index of all fritznasdb logfiles found scanning Supportdata-Probes. Last update: 2024-11-21 07:09 GMT.
The label (temp) in the Logfile column shows there are other objects in this wiki using this name.
The Mod column shows the amount of models using the respective logfile. Click the column header to sort by this number.

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: 2024-11-21 07:52 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 - 8.00 Process running fritznasdb AVM
Serving sock me_fritznasdb.ctl 17* 6.04 - 8.00 avmipc endpoint of fritznasdb AVM
Depends on lib ld.so 22 7.08 - 8.00 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 61 5.01 - 8.00 Metadata extractor for Microsoft audio and video formats AVM
Depends on lib libavmcsock.so 61 5.01 - 8.00 Networking, I/O and helper functions AVM
Depends on lib libavmdb.so 61 5.01 - 8.00 fritznasdb database engine AVM
Depends on lib libavmid3tag.so 61 5.01 - 8.00 ID3 tag Metadata reading library (3rd gen.) AVM
Depends on lib libboxlib.so 61 5.01 - 8.00 Box status, logging and statistics functions AVM
Depends on lib libc.so 61 5.01 - 8.00 Standard C library Linux
Depends on lib libdl.so 47 5.01 - 8.00 Dynamic linking library Linux
Depends on lib libewnwlinux.so 61 5.01 - 8.00 Linux networking functions AVM
Depends on lib libewnwnet.so 61 5.01 - 8.00 Internet helper functions AVM
Depends on lib libexif.so 61 5.01 - 8.00 EXIF Metadata parsing, editing, and saving Linux
Depends on lib libgcc_s.so 28 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 49 5.01 - 8.00 C math library Linux
Depends on lib libmediautils.so 61 5.06 - 8.00 Media type detection and Thumbnail generation (2nd gen.) AVM
Depends on lib libmxml.so 61 5.01 - 8.00 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 57 5.01 - 7.31 Official PNG reference library LibPNG
Depends on lib libpng16.so 27 7.39 - 8.00 Official PNG reference library LibPNG
Depends on lib libpthread.so 50 5.01 - 8.00 POSIX threading library Linux
Depends on lib libsqlite3.so 61 5.01 - 8.00 SQLite self-contained SQL database engine Linux
Depends on lib libusbcfg.so 61 5.04 - 8.00 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 49 6.35 - 8.00 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: 2024-11-21 05:56 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/rtl) label in the Model column shows which CPU is meant for Multi-Linux models.
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 (main) 5.50 - 6.89 /sbin 99.4k - 112k
FRITZ!Box WLAN 3370 (main) 5.01 - 6.56 /sbin 90.6k - 115k
FRITZ!Box 3390 (main) 5.50 - 6.56 /sbin 90.6k - 112k
FRITZ!Box 3490 (main) 6.20 - 7.30 /sbin 111k - 147k
FRITZ!Box 4020 /sbin 111k
FRITZ!Box 4040 6.52 - 8.00 /sbin 92.1k - 114k
FRITZ!Box 4050 7.58 - 7.90 /sbin 110k
FRITZ!Box 4060 7.29 - 7.90 /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 (main) 7.29 - 8.00 /sbin 110k
FRITZ!Box 5690 Pro (main) 7.62 - 7.90 /sbin 110k
FRITZ!Box 6360 Cable 5.05 - 6.51 /sbin 71.5k - 100k
FRITZ!Box 6430 Cable (atom) 6.84 - 7.29 /sbin 111k - 138k
FRITZ!Box 6490 Cable (arm) 6.51 /sbin 100k
FRITZ!Box 6490 Cable (atom) 6.20 - 7.51 /sbin 111k - 138k
FRITZ!Box 6590 Cable (atom) 6.83 - 7.51 /sbin 111k - 138k
FRITZ!Box 6591 Cable (arm) 7.04 - 7.08 /sbin 127k - 138k
FRITZ!Box 6591 Cable (atom) 7.04 - 8.00 /sbin 127k - 146k
FRITZ!Box 6660 Cable (atom) 7.14 - 8.00 /sbin 127k - 146k
FRITZ!Box 6670 Cable (atom) 7.61 - 7.90 /sbin 146k
FRITZ!Box 6690 Cable (atom) 7.28 - 7.90 /sbin 138k - 146k
FRITZ!Box 6840 LTE (main) 5.08 - 6.88 /sbin 90.5k - 115k
FRITZ!Box 6842 LTE /sbin 90.6k - 115k
FRITZ!Box 6850 LTE 7.21 - 7.90 /sbin 106k - 147k
FRITZ!Box 6850 5G 7.24 - 7.90 /sbin 110k - 114k
FRITZ!Box 6890 LTE (main) 6.84 - 7.57 /sbin 135k - 147k
FRITZ!Box 6890 LTE v1 (main) 6.84 - 7.57 /sbin 135k - 147k
FRITZ!Box 6890 LTE v2 (main) 6.84 - 7.57 /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 (main) 5.55 - 6.88 /sbin 99.4k - 115k
FRITZ!Box Fon WLAN 7320 5.09 - 6.35 /sbin 90.6k - 112k
FRITZ!Box 7330 5.06 - 6.56 /sbin 90.6k - 112k
FRITZ!Box 7330 SL 5.08 - 6.56 /sbin 90.6k - 112k
FRITZ!Box Fon WLAN 7340 5.04 - 5.05 /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.36 /sbin 90.6k - 112k
FRITZ!Box Fon WLAN 7360 v2 5.22 - 6.88 /sbin 90.6k - 115k
FRITZ!Box 7362 SL (main) 5.53 - 7.18 /sbin 90.6k - 119k
FRITZ!Box 7369 (main) 6.30 - 6.32 /sbin 111k
FRITZ!Box Fon WLAN 7390 5.01 - 5.22 /sbin 90.5k - 115k
FRITZ!Box 7430 (main) 6.26 - 7.31 /sbin 111k - 147k
FRITZ!Box 7490 (main) 5.57 - 7.51 /sbin 99.4k - 147k
FRITZ!Box 7510 7.30 - 8.00 /sbin 110k
FRITZ!Box 7520 6.98 - 8.00 /sbin 92.1k - 114k
FRITZ!Box 7520 v2 (main) 7.30 - 8.00 /sbin 110k - 114k
FRITZ!Box 7530 6.98 - 8.00 /sbin 92.0k - 114k
FRITZ!Box 7530 AX 7.20 - 8.00 /sbin 110k - 114k
FRITZ!Box 7560 (main) 6.51 - 7.30 /sbin 135k - 147k
FRITZ!Box 7580 (main) 6.53 - 7.30 /sbin 135k - 147k
FRITZ!Box 7581 6.54 - 7.18 /sbin 95.2k - 114k
FRITZ!Box 7582 6.83 - 7.18 /sbin 95.2k - 114k
FRITZ!Box 7583 (main) 7.01 - 7.59 /sbin 135k - 147k
FRITZ!Box 7583 VDSL (main) 7.19 - 8.00 /sbin 147k
FRITZ!Box 7590 (main) 6.83 - 8.00 /sbin 135k - 147k
FRITZ!Box 7590 AX (main) 7.19 - 8.00 /sbin 143k - 147k
FRITZ!Box 7690 7.61 - 7.90 /sbin 110k
62 models use this command

Symbols

Daily updated index of all symbols of this command. Last update: 2024-11-21 07:52 GMT.

Firmware Symbol
5.07 - 6.20 BackslashOrSlash
6.10 - 8.00 avmipc_intf_deinit
6.10 - 8.00 avmipc_intf_init
6.10 - 6.93 avmipc_report_fritznasdb_running
6.10 - 8.00 avmipc_send
6.10 - 6.93 clean_libflac_ctx
5.01 - 8.00 convert_date_to_iso8601
6.10 - 8.00 convert_slash_in_path
5.01 - 8.00 create_date_string
5.01 - 8.00 create_time_string
5.01 - 8.00 db_audio_add
5.01 - 8.00 db_audio_move
5.01 - 8.00 db_audio_remove
5.04 - 8.00 db_audio_remove_by_audioinfo
5.01 - 8.00 db_audio_rename
5.01 - 8.00 db_audio_update
5.01 - 8.00 db_cache_add_audio
5.01 - 8.00 db_cache_clean
5.01 - 8.00 db_cache_find_audio
5.01 - 8.00 db_cache_free_audio
5.04 - 8.00 db_cache_init
5.01 - 8.00 db_cache_remove_entry
5.01 - 8.00 db_dir_add
5.01 - 5.06 db_dir_get_path_by_watchid
5.01 - 8.00 db_dir_move
5.01 - 8.00 db_dir_remove
5.01 - 8.00 db_dir_rename
5.01 - 8.00 db_dir_update
5.01 - 8.00 db_doc_add
5.01 - 8.00 db_doc_move
5.01 - 8.00 db_doc_remove
5.01 - 8.00 db_doc_rename
5.01 - 8.00 db_doc_update
5.01 - 8.00 db_image_add
5.01 - 8.00 db_image_move
5.01 - 8.00 db_image_remove
5.04 - 8.00 db_image_remove_by_imageinfo
5.01 - 8.00 db_image_rename
5.01 - 8.00 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 - 8.00 db_other_add
5.01 - 8.00 db_other_move
5.01 - 8.00 db_other_remove
5.01 - 8.00 db_other_rename
5.01 - 8.00 db_other_update
5.01 - 8.00 db_partition_add
5.01 - 8.00 db_partition_add_all
5.01 - 5.54 db_partition_reinit
5.01 - 8.00 db_partition_remove
5.01 - 8.00 db_partition_remove_all
5.01 - 8.00 db_partition_remove_usb
5.01 - 8.00 db_playlist_add
5.01 - 8.00 db_playlist_move
5.07 - 8.00 db_playlist_process_entries
5.01 - 8.00 db_playlist_remove
5.06 - 8.00 db_playlist_remove_by_fileinfo
5.01 - 8.00 db_playlist_rename
5.01 - 8.00 db_playlist_update
5.55 - 8.00 db_stations_actualization_necessary
6.10 - 8.00 db_stations_create_intmem_audio_trigger_and_switch_dbs
5.50 - 8.00 db_stations_deinit
5.50 - 8.00 db_stations_free_db_stations
5.50 - 8.00 db_stations_get_current_stations
5.50 - 8.00 db_stations_get_db_stations
5.50 - 8.00 db_stations_init
5.50 - 8.00 db_stations_processing_finished
5.55 - 8.00 db_stations_remove_actualization_timestamp
5.50 - 8.00 db_stations_set_partinfo
5.55 - 8.00 db_stations_store_already_retrieved_stations
6.10 - 8.00 db_stations_switch_intmem_dbs
5.55 - 8.00 db_stations_update
5.50 db_stations_update_podcast_urls
5.50 db_stations_update_webradio_urls
5.50 - 8.00 db_upnp_audio_add_entry_to_menu_podcasts
5.50 - 8.00 db_upnp_audio_add_entry_to_menu_webradio
5.01 - 8.00 db_upnp_audio_added
5.04 - 8.00 db_upnp_audio_moved
5.01 - 8.00 db_upnp_audio_removed
5.01 - 8.00 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 - 8.00 db_upnp_container_dec_childcount_by_id
5.01 - 8.00 db_upnp_container_get_contid_by_expr
5.01 - 8.00 db_upnp_container_inc_childcount_by_id
5.01 - 8.00 db_upnp_container_move_directory_container
5.01 - 8.00 db_upnp_container_remove_empty_container_recursive
5.01 - 8.00 db_upnp_container_rename_directory_container
5.06 - 8.00 db_upnp_get_changed_system_update_id
5.01 - 8.00 db_upnp_image_added
5.04 - 8.00 db_upnp_image_moved
5.01 - 8.00 db_upnp_image_removed
5.06 - 8.00 db_upnp_inc_system_update_id
5.07 - 8.00 db_upnp_playlist_container_add
5.07 - 8.00 db_upnp_playlist_container_remove
5.01 - 8.00 db_upnp_video_added
5.04 - 8.00 db_upnp_video_moved
5.01 - 8.00 db_upnp_video_removed
5.01 - 8.00 db_video_add
5.01 - 8.00 db_video_move
5.01 - 8.00 db_video_remove
5.04 - 8.00 db_video_remove_by_videoinfo
5.01 - 8.00 db_video_rename
5.01 - 8.00 db_video_update
5.01 - 8.00 fill_file_info
5.01 - 8.00 fill_file_info_lost
5.04 - 8.00 fill_file_info_without_inotify_check
5.04 - 8.00 finish_activity
5.01 - 8.00 fs_content_add
5.01 - 8.00 fs_content_move
5.01 - 8.00 fs_content_print_itemcount
5.01 - 8.00 fs_content_remove
5.04 - 8.00 fs_content_remove_by_expr
5.01 - 8.00 fs_content_rename
5.01 - 8.00 fs_scan_deinit
5.04 - 8.00 fs_scan_in_progress
5.01 - 8.00 fs_scan_init
5.01 - 8.00 fs_scan_notify_lost_partition
5.01 - 8.00 fs_scan_notify_new_partition
5.01 - 5.54 fs_scan_reinit_current_partition
5.01 - 8.00 fs_statistic_deinit
5.04 - 8.00 fs_statistic_init
5.50 - 8.00 fs_statistic_reset
5.01 fs_statistic_set_scan_entry_failure
5.01 - 8.00 fs_statistic_set_scan_status_aborted
5.01 - 8.00 fs_statistic_set_scan_status_complete
5.01 - 8.00 fs_statistic_set_scan_status_manual_init
5.01 - 8.00 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 - 8.00 fs_statistic_update_fritznasdb_run_mode
5.01 - 8.00 fs_statistic_update_last_db_error
5.01 - 8.00 fs_statistic_update_last_scanned_entry
5.01 - 5.06 fs_statstic_init
5.01 - 8.00 fs_watcher_add
5.01 - 8.00 fs_watcher_deinit
5.01 - 5.06 fs_watcher_get_id
7.19 - 8.00 fs_watcher_ignore_file
5.01 - 8.00 fs_watcher_init
5.04 - 5.08 fs_watcher_is_active
5.01 - 8.00 fs_watcher_remove
5.01 - 8.00 ftwthread_start
5.01 - 8.00 ftwthread_stop
5.07 - 6.06 get_count_of_digits
5.50 - 8.00 get_datetime_from_unixtime
5.01 - 6.64 get_file_extension
5.01 - 8.00 get_file_name_from_path
7.08 - 8.00 get_media_dir_utf8
5.01 - 8.00 get_parent_path
5.01 - 8.00 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 - 8.00 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 - 8.00 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 - 8.00 read_asfaudio_infos
5.01 - 8.00 read_asfvideo_infos
5.27 - 6.93 read_flac_infos
5.01 - 8.00 read_jpeg_infos
5.01 - 8.00 read_mp3_infos
5.07 - 8.00 read_playlist_infos
5.01 - 8.00 read_png_infos
5.01 - 6.64 replace_first_char
5.01 - 6.64 replace_last_char
5.01 - 8.00 set_path_of_onlinestore
7.19 trigger_reload_config
5.01 - 8.00 validate_and_copy_string
5.04 - 8.00 wait_for_reader_if_necessary
183 symbols for this command

SMW-Browser

Information is currently being retrieved from the backend.