btrfs-progs/common
Racz Zoltan ed8b167de9 btrfs-progs: add duration format to fmt_print
Add "duration" format in seconds to fmt_print which will convert the
input to one of the following strings:

1. if number of seconds represents more than one day, the output will be
   for example: "1 days 01:30:00" (left the plural so parsing back the
   string is easier)
2. if less then a day: "23:30:10"

Author: Racz Zoltan <racz.zoli@gmail.com>
Signed-off-by: David Sterba <dsterba@suse.com>
2025-03-11 22:15:09 +01:00
..
array.c btrfs-progs: run codespell throughout fixing typos automagically 2024-07-30 19:56:08 +02:00
array.h
box.h
clear-cache.c btrfs-progs: clean up includes 2025-01-16 19:13:26 +01:00
clear-cache.h
cpu-utils.c
cpu-utils.h
defs.h
device-scan.c btrfs-progs: rename and move __strncpy_null to string-utils 2024-06-24 19:18:46 +02:00
device-scan.h btrfs-progs: clean up includes 2025-01-16 19:13:26 +01:00
device-utils.c btrfs-progs: support byte length for zone resetting 2024-06-03 21:26:39 +02:00
device-utils.h btrfs-progs: clean up includes 2025-01-16 19:13:26 +01:00
extent-cache.c btrfs-progs: make all parameters of rb_tree search/insert const 2024-03-12 21:43:54 +01:00
extent-cache.h
extent-tree-utils.c btrfs-progs: clean up includes 2025-01-16 19:13:26 +01:00
extent-tree-utils.h btrfs-progs: clean up includes 2025-01-16 19:13:26 +01:00
filesystem-utils.c btrfs-progs: open the devices exclusively for writes 2024-09-17 14:33:22 +02:00
filesystem-utils.h
format-output.c btrfs-progs: add duration format to fmt_print 2025-03-11 22:15:09 +01:00
format-output.h
fsfeatures.c btrfs-progs: move RST back to experimental 2024-06-24 19:18:32 +02:00
fsfeatures.h btrfs-progs: clean up includes 2025-01-16 19:13:26 +01:00
help.c btrfs-progs: factor out builtin feature string 2025-02-11 20:43:28 +01:00
help.h btrfs-progs: factor out builtin feature string 2025-02-11 20:43:28 +01:00
inject-error.c
inject-error.h
internal.h
messages.c btrfs-progs: handle write errors in btrfs_add_to_fsid() 2024-03-16 22:25:50 +01:00
messages.h btrfs-progs: add uClibc-ng compatibility for printf format %pV 2024-07-30 19:53:33 +02:00
open-utils.c btrfs-progs: use strncpy_null everywhere 2024-06-24 19:18:48 +02:00
open-utils.h btrfs-progs: rename btrfs_open_fd2() to btrfs_open_path() 2024-02-20 12:59:29 +01:00
parse-utils.c btrfs-progs: implement arg_strtou64_with_suffix() with a new helper 2024-01-18 02:14:23 +01:00
parse-utils.h btrfs-progs: implement arg_strtou64_with_suffix() with a new helper 2024-01-18 02:14:23 +01:00
path-utils.c btrfs-progs: rename and move __strncpy_null to string-utils 2024-06-24 19:18:46 +02:00
path-utils.h btrfs-progs: rename and move __strncpy_null to string-utils 2024-06-24 19:18:46 +02:00
rbtree-utils.c btrfs-progs: make all parameters of rb_tree search/insert const 2024-03-12 21:43:54 +01:00
rbtree-utils.h btrfs-progs: make all parameters of rb_tree search/insert const 2024-03-12 21:43:54 +01:00
root-tree-utils.c btrfs-progs: clean up includes 2025-01-16 19:13:26 +01:00
root-tree-utils.h btrfs-progs: clean up includes 2025-01-16 19:13:26 +01:00
send-stream.c btrfs-progs: clean up includes 2025-01-16 19:13:26 +01:00
send-stream.h
send-utils.c btrfs-progs: move uuid-tree definitions to kernel-shared/uuid-tree.h 2024-07-30 20:01:59 +02:00
send-utils.h btrfs-progs: clean up includes 2025-01-16 19:13:26 +01:00
sort-utils.c btrfs-progs: run codespell throughout fixing typos automagically 2024-07-30 19:56:08 +02:00
sort-utils.h btrfs-progs: run codespell throughout fixing typos automagically 2024-07-30 19:56:08 +02:00
string-table.c btrfs-progs: string-table: fix memory leak on exit path in table_vprintf() 2024-04-18 19:16:15 +02:00
string-table.h
string-utils.c btrfs-progs: factor string escaping helpers from receive dump 2024-07-30 19:53:33 +02:00
string-utils.h btrfs-progs: factor string escaping helpers from receive dump 2024-07-30 19:53:33 +02:00
sysfs-utils.c btrfs-progs: change all sysfs helpers to return errno 2023-12-09 01:17:22 +01:00
sysfs-utils.h btrfs-progs: clean up includes 2025-01-16 19:13:26 +01:00
task-utils.c
task-utils.h
tree-search.h btrfs-progs: fix struct btrfs_tree_search_args layout 2025-01-17 22:30:40 +01:00
units.c
units.h btrfs-progs: fix UNITS_DECIMAL and UNITS_NEGATIVE bit definitions 2025-02-15 00:08:32 +01:00
utils.c btrfs-progs: utils: flush stdout after prompt in ask_user() 2024-11-28 14:40:46 +01:00
utils.h btrfs-progs: clean up includes 2025-01-16 19:13:26 +01:00