Skip to content

Support for SquashFS in extfs #3147

@mc-butler

Description

@mc-butler

Important

This issue was migrated from Trac:

Origin https://midnight-commander.org/ticket/3147
Reporter Unknown

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.

Note

Original attachments:

  • usqfs (raw) by Unknown on Jan 11, 2014 at 18:40 UTC

Metadata

Metadata

Assignees

Labels

area: vfsVirtual File System supportprio: mediumHas the potential to affect progressver: 4.8.33Reproducible in version 4.8.33

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions