|
From: Frederik D. <fre...@da...> - 2006-11-29 13:19:32
|
Hi,
first of all, a great many thanks for this wonderful piece of software.
Now to my question: How should FUSE options be passed
when mysqlfs is executed?
In particular, I'm interested in allowing other users to see/use the
mounted filesystem. Thus, I'm trying to do it like this:
mysqlfs -ohost=localhost -ouser=mysqlfs -opassword= -odatabase=mysqlfs /var/lib/mysqlfs/fs -oallow_other
* Opening logfile 'mysqlfs.log': OK
fuse: invalid argument `allow_other'
mysqlfs -ohost=localhost -ouser=mysqlfs -opassword= -odatabase=mysqlfs /var/lib/mysqlfs/fs -onoprivate
* Opening logfile 'mysqlfs.log': OK
fuse: invalid argument `noprivate'
Hints are welcome.
B/R,
Frederik Dannemare
P.S.: I have created a Debian package of MySQLfs, also including a
minimalistic manpage and an init script. I'm already officiel Debian
maintainer of a few other packages, and I was thinking of getting
MySQLfs into Debian as well. Feedback is welcome.
Content of package:
$ dpkg --contents ../mysqlfs_0.3.1-6_i386.deb
drwxr-xr-x root/root 0 2006-11-29 11:39 ./
drwxr-xr-x root/root 0 2006-11-29 11:39 ./usr/
drwxr-xr-x root/root 0 2006-11-29 11:39 ./usr/bin/
-rwxr-xr-x root/root 26584 2006-11-29 11:39 ./usr/bin/mysqlfs
drwxr-xr-x root/root 0 2006-11-29 11:39 ./usr/share/
drwxr-xr-x root/root 0 2006-11-29 11:39 ./usr/share/doc/
drwxr-xr-x root/root 0 2006-11-29 11:39 ./usr/share/doc/mysqlfs/
-rw-r--r-- root/root 1674 2006-10-03 00:06 ./usr/share/doc/mysqlfs/changelog.gz
-rw-r--r-- root/root 404 2006-10-03 00:34 ./usr/share/doc/mysqlfs/NEWS.gz
-rw-r--r-- root/root 721 2006-09-17 13:41 ./usr/share/doc/mysqlfs/TODO
-rw-r--r-- root/root 1344 2006-11-21 21:49 ./usr/share/doc/mysqlfs/README.Debian
-rw-r--r-- root/root 634 2006-11-15 10:17 ./usr/share/doc/mysqlfs/copyright
drwxr-xr-x root/root 0 2006-11-29 11:39 ./usr/share/doc/mysqlfs/examples/
-rw-r--r-- root/root 2741 2006-09-23 10:59 ./usr/share/doc/mysqlfs/examples/schema.sql
-rw-r--r-- root/root 716 2006-11-29 11:35 ./usr/share/doc/mysqlfs/changelog.Debian.gz
drwxr-xr-x root/root 0 2006-11-29 11:39 ./usr/share/man/
drwxr-xr-x root/root 0 2006-11-29 11:39 ./usr/share/man/man1/
-rw-r--r-- root/root 659 2006-11-16 13:29 ./usr/share/man/man1/mysqlfs.1.gz
drwxr-xr-x root/root 0 2006-11-29 11:39 ./var/
drwxr-xr-x root/root 0 2006-11-29 11:39 ./var/lib/
drwxr-xr-x root/root 0 2006-11-29 11:39 ./var/lib/mysqlfs/
drwxr-xr-x root/root 0 2006-11-29 11:39 ./var/lib/mysqlfs/fs/
drwxr-xr-x root/root 0 2006-11-29 11:39 ./etc/
drwxr-xr-x root/root 0 2006-11-29 11:39 ./etc/default/
-rw-r--r-- root/root 445 2006-11-21 11:08 ./etc/default/mysqlfs
drwxr-xr-x root/root 0 2006-11-29 11:39 ./etc/init.d/
-rwxr-xr-x root/root 2874 2006-11-29 11:34 ./etc/init.d/mysqlfs
Debian package changelog:
mysqlfs (0.3.1-6) unstable; urgency=low
* Clean up pid file on stop.
* Add dependency on fuse-utils.
-- Frederik Dannemare <fre...@da...> Wed, 29 Nov 2006 11:34:28 +0100
mysqlfs (0.3.1-5) unstable; urgency=low
* Add extra checks with regards to determining whether mysqlfs has stopped
completely or not when calling the init script with 'stop'. If something
is wrong, the user will receive informative output.
-- Frederik Dannemare <fre...@da...> Tue, 21 Nov 2006 21:27:37 +0100
mysqlfs (0.3.1-4) unstable; urgency=low
* Add schema.sql to debian/examples.
* Modify README.Debian (for easier copy'n'paste with
regards to creating the MySQL db) and remove unnecessary
text regarding stuff that the init script now handles.
* Try to find a somewhat solid way of getting the correct PID
of mysqlfs and make use of this PID value in the init script.
-- Frederik Dannemare <fre...@da...> Tue, 21 Nov 2006 16:50:35 +0100
mysqlfs (0.3.1-3) unstable; urgency=low
* Cosmetic changes (including a typo fix) to man page.
* Add init script and accompanying /etc/default/mysqlfs file.
* Add var/lib/mysqlfs/fs and etc/default to debian/dirs.
-- Frederik Dannemare <fre...@da...> Wed, 15 Nov 2006 20:40:34 +0100
mysqlfs (0.3.1-2) unstable; urgency=low
* Change the description in debian/control slightly.
-- Frederik Dannemare <fre...@da...> Wed, 15 Nov 2006 11:56:20 +0100
mysqlfs (0.3.1-1) unstable; urgency=low
* Initial release.
* Add minimalistic manpage.
* Add README.Debian with post-install instructions.
-- Frederik Dannemare <fre...@da...> Wed, 15 Nov 2006 10:00:40 +0100
|
|
From: Frederik D. <fre...@da...> - 2006-11-29 14:10:11
|
On Wednesday 29 November 2006 14:19, Frederik Dannemare wrote:
[ snip ]
> Debian package changelog:
Just made yet another changelog entry:
mysqlfs (0.3.1-7) unstable; urgency=low
* Add the keyword PRIMARY to line 67 in schema.sql,
otherwise MySQL 5.1.11beta-1 will complain during
table creation (but only when the NDB Cluster storage
engine is used, it seems - MyISAM doesn't complain).
See http://bugs.mysql.com/bug.php?id=6546 for related info.
-- Frederik Dannemare <fre...@da...> Wed, 29 Nov 2006
14:30:52 +0100
Ergo, a small diff:
--- mysqlfs-0.3.1.orig/schema.sql
+++ mysqlfs-0.3.1/schema.sql
@@ -64,7 +64,7 @@
`parent` int(10) unsigned default NULL,
`name` varchar(255) NOT NULL,
UNIQUE KEY `name` (`name`,`parent`),
- KEY `inode` (`inode`),
+ PRIMARY KEY `inode` (`inode`),
KEY `parent` (`parent`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
B/R,
Frederik Dannemare
|