Ticket #3147 (new enhancement)

Opened 10 years ago

Virtual Squashfs Support

Reported by: Unknown Owned by:
Priority: major Milestone: Future Releases
Component: mc-vfs Version: master
Keywords: Cc:
Blocked By: Blocking:
Branch state: no branch Votes for changeset:

Description

Midnight Commander does not have VFS support like for e.g. iso9660.

Having "unsquashfs" from squashfs-tools package in the $PATH environment available, "usqfs" in "extfs.d" directory of MC and this patch:

--- mc.ext.org	2013-08-09 10:49:00.000000000 +0200
+++ mc.ext	2013-11-09 18:21:00.000000000 +0100
@@ -254,6 +254,9 @@
 	Open=%cd %p/iso9660://
 	View=%view{ascii} /usr/local/libexec/mc/ext.d/misc.sh view iso9660
 
+type/^Squashfs filesystem
+	Open=%cd %p/usqfs://
+	View=%view{ascii} unsquashfs -stat %f ; unsquashfs -lls -d "" %f
 
 regex/\.(diff|patch)$
 	Open=%cd %p/patchfs://

applied, works for me since a while.

Attachments

usqfs (2.3 KB) - added by Unknown 10 years ago.
usqfs

Change History

Changed 10 years ago by Unknown

usqfs

Note: See TracTickets for help on using tickets.