Ticket #3147 (accepted enhancement)

Opened 12 years ago

Last modified 8 months ago

Support for SquashFS in extfs

Reported by: Unknown Owned by: zaytsev
Priority: major Milestone: 4.8.34
Component: mc-vfs Version: master
Keywords: Cc:
Blocked By: #4643 Blocking:
Branch state: merged Votes for changeset: committed-master

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 12 years ago.
usqfs

Change History

Changed 12 years ago by Unknown

usqfs

comment:1 Changed 9 months ago by zaytsev

  • Summary changed from Virtual Squashfs Support to Support for SquashFS in extfs

comment:2 Changed 9 months ago by zaytsev

  • Owner set to zaytsev
  • Status changed from new to accepted
  • Milestone changed from Future Releases to 4.8.34

comment:3 Changed 9 months ago by zaytsev

The parser cuts its teeth on the following line

crw------- root/root             5,  1 2024-09-23 14:34 /dev/console

producing

crw-------   1     root     root       5,   -  -   1 2024-09-23 14:34 /dev/console

which mc cannot parse.

comment:4 Changed 9 months ago by zaytsev

  • Branch state changed from no branch to on review

Branch: 3147_squashfs
Changeset: 737c8faa249da2200420f9612ea28f796a3c20c3

I can't thank mooffie enough for his extfs test harness...

comment:5 Changed 9 months ago by andrew_b

  • Votes for changeset set to andrew_b
  • Branch state changed from on review to approved

comment:6 Changed 9 months ago by zaytsev

  • Status changed from accepted to testing
  • Votes for changeset changed from andrew_b to committed-master
  • Resolution set to fixed
  • Branch state changed from approved to merged

comment:7 Changed 9 months ago by zaytsev

  • Status changed from testing to closed

comment:8 Changed 9 months ago by zaytsev

  • Status changed from closed to reopened
  • Resolution fixed deleted

Forgot to add tests file to dist, caught by distcheck.

comment:9 Changed 9 months ago by zaytsev

  • Status changed from reopened to accepted
  • Blocked By 4643 added

comment:10 Changed 8 months ago by zaytsev

  • Blocking 1678 added

TODO: Close #1678 when done.

comment:11 Changed 8 months ago by zaytsev

  • Blocking 1678 removed
Note: See TracTickets for help on using tickets.