History log of /external/squashfs-tools/squashfs-tools/info.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
933026301cb9d41b4b8b8273d892ea71c1c3d04b 01-Apr-2016 Mohamad Ayyash <mkayyash@google.com> Make squashfs work on BSD and macOS

Based on https://github.com/vasi/squashfs-tools

Change-Id: Ia2b04541652ef4f0cf8d6ff1daf106d6db32e278
Signed-off-by: Mohamad Ayyash <mkayyash@google.com>
/external/squashfs-tools/squashfs-tools/info.c
9ddee97d41c6a17d91d54e027c83c2262651ff4d 21-Apr-2014 Phillip Lougher <phillip@squashfs.org.uk> info: fix missing ')' in queue and cache dump

Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>
/external/squashfs-tools/squashfs-tools/info.c
06f87e20d2d0012e6ffa6a49df7601c2137ccde8 20-Apr-2014 Phillip Lougher <phillip@squashfs.org.uk> Update copyright messages

Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>
/external/squashfs-tools/squashfs-tools/info.c
943acada7a60a048b4be53a4df1e94e8b10e08a6 17-Apr-2014 Phillip Lougher <phillip@squashfs.org.uk> mksquashfs: fix a potential non-default option deadlock

Fix a potential deadlock in Mksquashfs that may be triggerable using
non-default options.

Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>
/external/squashfs-tools/squashfs-tools/info.c
742514ef71dcbfb060fe542c4c7c710e17aa4f5b 10-Apr-2014 Phillip Lougher <phillip@squashfs.org.uk> caches-queues-lists: dump the fragment reserve cache

Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>
/external/squashfs-tools/squashfs-tools/info.c
e3e69fc4edf5760932422f284edb7460221f0611 10-Apr-2014 Phillip Lougher <phillip@squashfs.org.uk> caches-queues-lists: dump reader thread -> process fragment threads queue

Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>
/external/squashfs-tools/squashfs-tools/info.c
d711184c70ca7feeea8c1692aaf1f94615601bdb 19-Jan-2014 Phillip Lougher <phillip@squashfs.org.uk> mksquashfs: simplify print_filename in info.c

Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>
/external/squashfs-tools/squashfs-tools/info.c
42abe6657a081befd21b70f3dfb3ce3803cf27c9 06-Jun-2013 Phillip Lougher <phillip@squashfs.org.uk> info: take temporary copy of "ent"

dir_ent may get updated asyncronously while using it.

Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>
/external/squashfs-tools/squashfs-tools/info.c
cf478e9fddfa332b91922ac1c626c5f0d4e65c74 29-May-2013 Phillip Lougher <phillip@squashfs.org.uk> mksquashfs: rename from_reader queue to to_deflate

The from_reader queue used to collect all the data queued from
the reader thread (hence its name). Data from the reader thread
is now queued to the to_main queue (uncompressed fragments etc.) and
to the from_reader queue, which is now soley used to queue
blocks to the deflator thread(s). So rename to to_deflate which
now more accurately reflects how it is used.

Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>
/external/squashfs-tools/squashfs-tools/info.c
b1e22342d97162cac89b8f6493d4b3bdb3580f72 25-May-2013 Phillip Lougher <phillip@squashfs.org.uk> info: squash dump_state() output so it again fits into a 80x24 terminal window

Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>
/external/squashfs-tools/squashfs-tools/info.c
fb4a676b627f70e68a315c2c10be7c0fe53428a6 25-May-2013 Phillip Lougher <phillip@squashfs.org.uk> info: add locked fragment queue to dump_state()

Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>
/external/squashfs-tools/squashfs-tools/info.c
ce5465034ef02595e84b0fa4b27894e631173d33 20-May-2013 Phillip Lougher <phillip@squashfs.org.uk> caches-queues-list: update informational printf in dump_state()

The uncompressed fragment buffers are now queued directly
by the reader thread, rather than being queued by the deflate thread(s)

Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>
/external/squashfs-tools/squashfs-tools/info.c
0e1656d12ed8573d94f4c2735134aeb7c1a8f5b2 20-May-2013 Phillip Lougher <phillip@squashfs.org.uk> mksquashfs: change queue name from "from_deflate" to "to_main"

The queue now queues buffers sent from both the reader thread and
the deflate thread to the main thread, so the name "from_deflate"
is wrong, change to "to_main" which correctly reflects the queue
usage.

Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>
/external/squashfs-tools/squashfs-tools/info.c
5559195ad6fff3067ab56cecbbd3f516d8b58dfa 12-May-2013 Phillip Lougher <phillip@squashfs.org.uk> caches-queues-lists: make queue dump more informative

Rather than giving the name of the queue, describe what the
queue does!

Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>
/external/squashfs-tools/squashfs-tools/info.c
40e1876a205a36d4b725a1b6db8a71757190d17b 12-May-2013 Phillip Lougher <phillip@squashfs.org.uk> caches-queues-lists: implement dump_seq_queue

Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>
/external/squashfs-tools/squashfs-tools/info.c
1765698880f0a44f4ea1c6187fb3ffbd7e79a08d 11-May-2013 Phillip Lougher <phillip@squashfs.org.uk> mksquashfs: replace generic queue with specialised "sequential queue"

Replace the use of a generic queue and associated code in mksquashfs.c
to re-order out of order buffers (see previous commit) received from
the deflate threads (and reader thread) with a specialised
"sequential queue" that guarantees buffers are delivered in the
order specified in the "sequence" field, and which minimises
unnecessary wake-ups.

It will also ensure that pending queued buffers are held in the
queue rather than being "popped" off and held invisibly in a
structure private to mksquashfs.c. This will also ensure a more
accurate display of queue status when in the queue and cache
dump (generated if control \ is hit twice within one second).

Currently queue status dumping of the seq_queue isn't implemented
so comment that out for the time being.

Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>
/external/squashfs-tools/squashfs-tools/info.c
c0828174d559d614996f39058ec83928ecbdc54c 02-May-2013 Phillip Lougher <phillip@squashfs.org.uk> info: dump queue and cache status if ^\ hit twice within one second

Previously the filename being Squashed would be printed on hitting
^\, and the queue and cache status would be printed if
SIGHUP was received.

However, sending SIGHUP to generate a queue and cache status dump
is a PITA, it cannot be generated from the keyboard and must be sent
from another terminal window.

Fix this by overloading ^\. Now if ^\ is hit twice within one second
dump the queue and cache status.

Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>
/external/squashfs-tools/squashfs-tools/info.c
e3ef7b81ce21d8da7007daeac4c351d2c2c11f9d 27-Apr-2013 Phillip Lougher <phillip@squashfs.org.uk> info: add code to dump cache state

Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>
/external/squashfs-tools/squashfs-tools/info.c
19fb4bc202039a3d67be5512112f8c6fe5609ab2 25-Apr-2013 Phillip Lougher <phillip@squashfs.org.uk> info: add some newlines to the queue printfs

Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>
/external/squashfs-tools/squashfs-tools/info.c
7538d74f6fbefc11f20fe33ab75d5f197b2dee5c 22-Apr-2013 Phillip Lougher <phillip@squashfs.org.uk> info: add initial code to dump queue state when sent SIGHUP

Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>
/external/squashfs-tools/squashfs-tools/info.c
0e0c8a377884613e19a9c4b9b08465ec7d4b6de4 22-Apr-2013 Phillip Lougher <phillip@squashfs.org.uk> info: handle asprintf failure properly

Cleanup asprintf error handling. Print an ERROR and
return without doing anything else.

Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>
/external/squashfs-tools/squashfs-tools/info.c
2a3f32ae009cb0d456d578a6ad32b0b17f21e1a5 22-Apr-2013 Phillip Lougher <phillip@squashfs.org.uk> info: move filename printing into separate function

Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>
/external/squashfs-tools/squashfs-tools/info.c
24551a8a473d7edb1835eb0f7dcf6e07e3a9d2e1 24-Mar-2013 Phillip Lougher <phillip@squashfs.org.uk> mksquashfs: print file being squashed when ^\ (SIGQUIT) typed

If ^\ is typed on the keyboard whilst Mksquashfs is squashing files
(progress bar being printed), then display the filename of the
file being squashed.

The progress bar is useful to display how far blockwise/percentage-wise
Mksquashfs has got, but, it doesn't display filenames, and it is
often nice to get a snapshot filewise where Mksquashfs has got to.
Obviously, you can use -info for this, but this is a "heavy-weight"
option which displays every filename, it not only leads to
screenfulls of text, but it also can slow Mksquashfs down as it
is bottlenecked by all the filename printing.

Adding the ^\ option offers a best of both worlds, Mksquashfs
displays the progress bar which gives nice feedback on the
progress of Mksquashfs but in a way which does not generate
lots of text and doesn't slow Mksquashfs down, and typing ^\
gives you the filename of file being squashed but only when
desired, which doesn't generate screenfulls of text or slow
Mksquashfs down.

Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>
/external/squashfs-tools/squashfs-tools/info.c