Difference between revisions of "Mythtvfs"

From MythTV Official Wiki
Jump to: navigation, search
m
m
Line 1: Line 1:
 
MythtvFS (http://outflux.net/software/pkgs/mythtvfs-fuse/) uses fuse (http://fuse.sf.net).  It allows you to print the more verbose filenames, rather than the default filename that mythtv provides.
 
MythtvFS (http://outflux.net/software/pkgs/mythtvfs-fuse/) uses fuse (http://fuse.sf.net).  It allows you to print the more verbose filenames, rather than the default filename that mythtv provides.
  
Instructions provided on the MythtvFS page above.
+
Instructions provided on the MythtvFS page above. NOTE: To mount an allow other users to access the mount, use -o allow_other.
 +
 
  
 
Here is my patch for mythtvfs-0.4.0 to get it working with fuse 2.6.3 and mythtv 0.20:
 
Here is my patch for mythtvfs-0.4.0 to get it working with fuse 2.6.3 and mythtv 0.20:

Revision as of 08:08, 6 March 2008

MythtvFS (http://outflux.net/software/pkgs/mythtvfs-fuse/) uses fuse (http://fuse.sf.net). It allows you to print the more verbose filenames, rather than the default filename that mythtv provides.

Instructions provided on the MythtvFS page above. NOTE: To mount an allow other users to access the mount, use -o allow_other.


Here is my patch for mythtvfs-0.4.0 to get it working with fuse 2.6.3 and mythtv 0.20:

NOTE: For mythtvfs-0.4.1, the patch is not needed.

--- mythtvfs.c  2006-05-12 17:12:09.000000000 -0700
+++ mythtvfs.c  2007-02-22 22:08:54.000000000 -0800
@@ -288,7 +288,7 @@
 }
 
 #define MYTH_SEP "[]:[]"
-#define MYTH_PROTO_VERSION "26"
+#define MYTH_PROTO_VERSION "31"
 #define MYTH_PROGRAM_COLS  (mythtvfs.program_cols)
 
 void backend_client_check()
@@ -326,6 +326,7 @@
     switch (atoi(version)) {
         case 15: mythtvfs.program_cols = 39; break;
         case 26: mythtvfs.program_cols = 41; break;
+        case 31: mythtvfs.program_cols = 42; break;
         default:
                  fprintf(stderr,"Unknown protocol version (backend=%s)\n",version);
     }
@@ -915,14 +916,14 @@
     case KEY_HELP:
         usage(outargs->argv[0]);
         fuse_opt_add_arg(outargs, "-ho");
-        fuse_main(outargs->argc, outargs->argv, &mythtvfs_oper);
+        fuse_main(outargs->argc, outargs->argv, &mythtvfs_oper, NULL);
         exit(1);
 
     case KEY_VERSION:
         fprintf(stderr, "MythTVfs version %s\n", PACKAGE_VERSION);
 #if FUSE_VERSION >= 25
         fuse_opt_add_arg(outargs, "--version");
-        fuse_main(outargs->argc, outargs->argv, &mythtvfs_oper);
+        fuse_main(outargs->argc, outargs->argv, &mythtvfs_oper, NULL);
 #endif
         exit(0);
     
@@ -973,7 +974,7 @@
     backend_client_check();
     backend_version_check();
 
-    rc = fuse_main(args.argc, args.argv, &mythtvfs_oper);
+    rc = fuse_main(args.argc, args.argv, &mythtvfs_oper, NULL);
 
     backend_done();
     if (mythtvfs.logfile) fclose(mythtvfs.logfile);