<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:old.nabble.com,2006:forum-996</id>
	<title>Nabble - Fuse - Dev</title>
	<updated>2009-12-15T15:54:56Z</updated>
	<link rel="self" type="application/atom+xml" href="http://old.nabble.com/Fuse---Dev-f996.xml" />
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Fuse---Dev-f996.html" />
	<subtitle type="html">Filesystem in Userspace.</subtitle>
	
<entry>
	<id>tag:old.nabble.com,2006:post-26804160</id>
	<title>Addition to the list FileSystems: RevealFS</title>
	<published>2009-12-15T15:54:56Z</published>
	<updated>2009-12-15T15:54:56Z</updated>
	<author>
		<name>Sebastian Pipping-4</name>
	</author>
	<content type="html">Hello!
&lt;br&gt;&lt;br&gt;&lt;br&gt;Please add RevealFS (details below) to the list of file systems on [1]
&lt;br&gt;for me as I have no write permissions to it. &amp;nbsp;From browsing the whole
&lt;br&gt;tree today I think RevealFS does not fit into any of the categories.
&lt;br&gt;RevealFS is most similar to rofs-filtered which is listed on the main
&lt;br&gt;page, too.
&lt;br&gt;&lt;br&gt;&amp;nbsp; Author:
&lt;br&gt;&amp;nbsp; &amp;nbsp; Sebastian Pipping / sebastian at pipping org
&lt;br&gt;&lt;br&gt;&amp;nbsp; Homepage:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://git.freitagsrunde.org/?p=revealfs.git;a=summary&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://git.freitagsrunde.org/?p=revealfs.git;a=summary&lt;/a&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; Description:
&lt;br&gt;&amp;nbsp; &amp;nbsp; Bind-mounts a folder in read-only mode and hides all files and
&lt;br&gt;&amp;nbsp; &amp;nbsp; folders that do not have the extended file system attribute (xattr)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;quot;user.public&amp;quot; set. &amp;nbsp;Can be used to reveal a subset of files to the
&lt;br&gt;&amp;nbsp; &amp;nbsp; public while keeping both internal and public documents together in
&lt;br&gt;&amp;nbsp; &amp;nbsp; the same tree. &amp;nbsp;Written in Python. &amp;nbsp;See also: rofs-filtered.
&lt;br&gt;&lt;br&gt;Thanks in advance!
&lt;br&gt;&lt;br&gt;Best regards,
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Sebastian
&lt;br&gt;&lt;br&gt;&lt;br&gt;[1] &lt;a href=&quot;https://sourceforge.net/apps/mediawiki/fuse/index.php?title=FileSystems&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://sourceforge.net/apps/mediawiki/fuse/index.php?title=FileSystems&lt;/a&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;This SF.Net email is sponsored by the Verizon Developer Community
&lt;br&gt;Take advantage of Verizon's best-in-class app development support
&lt;br&gt;A streamlined, 14 day to market process makes app distribution fast and easy
&lt;br&gt;Join now and get one step closer to millions of Verizon customers
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/verizon-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/verizon-dev2dev&lt;/a&gt;&amp;nbsp;
&lt;br&gt;_______________________________________________
&lt;br&gt;fuse-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26804160&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;fuse-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/fuse-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/fuse-devel&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Addition-to-the-list-FileSystems%3A-RevealFS-tp26804160p26804160.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26804196</id>
	<title>small bug in fuse-python 0.2</title>
	<published>2009-12-15T15:52:32Z</published>
	<updated>2009-12-15T15:52:32Z</updated>
	<author>
		<name>Sebastian Pipping-4</name>
	</author>
	<content type="html">hello fuse-devel list!
&lt;br&gt;&lt;br&gt;&lt;br&gt;the latest release of fuse-python (version 0.2) has a bug with the
&lt;br&gt;constructors of the classes Flock and Timespec: Calls like
&lt;br&gt;&lt;br&gt;&amp;nbsp; Timespec(tv_sec = acc_sec, tv_nsec = acc_nsec)
&lt;br&gt;&lt;br&gt;are made against these constructors:
&lt;br&gt;&lt;br&gt;&amp;nbsp; class Flock(FuseStruct):
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; def __init__(self, name, **kw):
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [..snip..]
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; FuseStruct.__init__(self, **kw)
&lt;br&gt;&lt;br&gt;&amp;nbsp; class Timespec(FuseStruct):
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; def __init__(self, name, **kw):
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [..snip..]
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; FuseStruct.__init__(self, **kw)
&lt;br&gt;&lt;br&gt;someone fixed that in CVS with a patch like
&lt;br&gt;&lt;br&gt;&amp;nbsp; - &amp;nbsp; &amp;nbsp;def __init__(self, name, **kw):
&lt;br&gt;&amp;nbsp; + &amp;nbsp; &amp;nbsp;def __init__(self, **kw):
&lt;br&gt;&lt;br&gt;while that makes the internal calls from fuse-python work it would break
&lt;br&gt;any previously valid external calls like
&lt;br&gt;&lt;br&gt;&amp;nbsp; Timespec('foobar', tv_sec = acc_sec, tv_nsec = acc_nsec)
&lt;br&gt;&lt;br&gt;depending on whether you want name to go to FuseStruct.__init__ i would
&lt;br&gt;like to request repatching to either
&lt;br&gt;&lt;br&gt;&amp;nbsp; + &amp;nbsp; &amp;nbsp;def __init__(self, name=None, **kw):
&lt;br&gt;&lt;br&gt;or
&lt;br&gt;&lt;br&gt;&amp;nbsp; + &amp;nbsp; &amp;nbsp;def __init__(self, name=None, **kw):
&lt;br&gt;&amp;nbsp; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;kw['name'] = name
&lt;br&gt;&lt;br&gt;i hope that makes the problem clear.
&lt;br&gt;&lt;br&gt;&lt;br&gt;==================================================
&lt;br&gt;please:
&lt;br&gt;&lt;br&gt;- let me know which variant you prefer
&lt;br&gt;&amp;nbsp; &amp;nbsp; (so i can fix it it downstream at gentoo linux)
&lt;br&gt;- repatch upstream
&lt;br&gt;- make a new release of fuse-python after
&lt;br&gt;&lt;br&gt;thank you!
&lt;br&gt;==================================================
&lt;br&gt;&lt;br&gt;&lt;br&gt;a new release is needed as code out there is really hitting the bug;
&lt;br&gt;i ran into this with the pytagsfs test suite:
&lt;br&gt;&lt;br&gt;&amp;nbsp; Traceback (most recent call last):
&lt;br&gt;&amp;nbsp; &amp;nbsp; File &amp;quot;/usr/lib/python2.6/site-packages/fuse.py&amp;quot;,\
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; line 361, in __call__
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; return apply(self.func, args, kw)
&lt;br&gt;&amp;nbsp; &amp;nbsp; File &amp;quot;/usr/lib/python2.6/site-packages/fuse.py&amp;quot;,\
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; line 782, in wrap\
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; ts_acc = Timespec(tv_sec = acc_sec, tv_nsec = acc_nsec)
&lt;br&gt;&amp;nbsp; TypeError: __init__() takes exactly 2 non-keyword arguments (1 given)
&lt;br&gt;&lt;br&gt;looking forward to your feedback!
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;sebastian
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;This SF.Net email is sponsored by the Verizon Developer Community
&lt;br&gt;Take advantage of Verizon's best-in-class app development support
&lt;br&gt;A streamlined, 14 day to market process makes app distribution fast and easy
&lt;br&gt;Join now and get one step closer to millions of Verizon customers
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/verizon-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/verizon-dev2dev&lt;/a&gt;&amp;nbsp;
&lt;br&gt;_______________________________________________
&lt;br&gt;fuse-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26804196&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;fuse-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/fuse-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/fuse-devel&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/small-bug-in-fuse-python-0.2-tp26804196p26804196.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26764528</id>
	<title>Big write requests</title>
	<published>2009-12-13T01:10:40Z</published>
	<updated>2009-12-13T01:10:40Z</updated>
	<author>
		<name>Didier GARCIN</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;I've just tested the 2.8.1. And would like to know in which conditions big writes are requested ?
&lt;br&gt;Must I configure FUSE to privilege the big writes ?
&lt;br&gt;Or would it be a kernel policy that I can't handle ?
&lt;br&gt;&lt;br&gt;&lt;br&gt;Thanks all
&lt;br&gt;Regards
&lt;br&gt;Didier
&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Return on Information:
&lt;br&gt;Google Enterprise Search pays you back
&lt;br&gt;Get the facts.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/google-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/google-dev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;fuse-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26764528&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;fuse-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/fuse-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/fuse-devel&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Big-write-requests-tp26764528p26764528.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26763171</id>
	<title>Re: fuse_entry_param</title>
	<published>2009-12-12T18:43:23Z</published>
	<updated>2009-12-12T18:43:23Z</updated>
	<author>
		<name>John Muir-2</name>
	</author>
	<content type="html">On 2009-12-12, at 8:04 PM, Nikolaus Rath wrote:
&lt;br&gt;&lt;br&gt;&amp;gt;&amp;gt; This is used by NFS: the NFS clients will refer to files by file
&lt;br&gt;&amp;gt;&amp;gt; handle (a value made up of the inode number and generation number). If
&lt;br&gt;&amp;gt;&amp;gt; the generation number changes (without the knowledge of the NFS
&lt;br&gt;&amp;gt;&amp;gt; clients), then the NFS client will receive ESTALE if it tries to
&lt;br&gt;&amp;gt;&amp;gt; access the old file so that it doesn't break the new file.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I see. Do you know how other file systems handle the generation number
&lt;br&gt;&amp;gt; in practice?
&lt;br&gt;&lt;br&gt;No, but I would imagine that it's like having a larger inode number (ie: if the file-system stores a 32-bit inode number, then the generation number can be the 'upper 32-bits' of a 64-bit NFS file handle that is made up of the inode number and generation number). So it is really optional. For example, my file-system has 64-bit inode numbers (I modified fuse_ino_t so that it is 64-bit - I can get away with this since it is implemented in an embedded system), and it doesn't reuse inode numbers, so the generation number returned is always 1.
&lt;br&gt;&lt;br&gt;&amp;gt; I guess as long as the file system has a static inode
&lt;br&gt;&amp;gt; table like ext3, one can store the generation no for each inode in
&lt;br&gt;&amp;gt; that table as well. But what if inodes are dynamically allocated? It
&lt;br&gt;&amp;gt; seems to me that I would have to keep a table of every inode ever used
&lt;br&gt;&amp;gt; to save the last generation numbers... 
&lt;br&gt;&lt;br&gt;Lifetime refers to the existence of the file-system, and not the duration of the mount. Inode numbers should be stored in the file-system permanently and refer to only one object (there can be multiple directory entries (hard links) to the same inode).
&lt;br&gt;&lt;br&gt;&amp;gt;From and NFS perspective, the point is that the same files can be accessed over and over again regardless of whether the NFS server (your file-system) is restarted (unmounted and mounted, server crash, reboot for patching, etc.) while the NFS client has a handle into the file-system.
&lt;br&gt;&lt;br&gt;Just don't change the generation of the root directory in your file-system, because that would require that the NFS clients must unmount and mount again in order to access your file-system over an NFS server restart.
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;&lt;br&gt;John.
&lt;br&gt;&lt;br&gt;--
&lt;br&gt;John Muir - &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26763171&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;john@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Return on Information:
&lt;br&gt;Google Enterprise Search pays you back
&lt;br&gt;Get the facts.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/google-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/google-dev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;fuse-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26763171&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;fuse-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/fuse-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/fuse-devel&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/fuse_entry_param-tp26661841p26763171.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26762675</id>
	<title>Re: fuse_entry_param</title>
	<published>2009-12-12T17:04:27Z</published>
	<updated>2009-12-12T17:04:27Z</updated>
	<author>
		<name>Nikolaus Rath</name>
	</author>
	<content type="html">John Muir &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26762675&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;john@...&lt;/a&gt;&amp;gt; writes:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;&amp;gt; How do I have to use the &amp;quot;generation&amp;quot; attribute? The documentation
&lt;br&gt;&amp;gt;&amp;gt; in fuse_lowlevel.h says that &amp;quot;The ino/generation pair should be
&lt;br&gt;&amp;gt;&amp;gt; unique for the filesystem's lifetime&amp;quot;. But what exactly does unique
&lt;br&gt;&amp;gt;&amp;gt; mean here? If I have a file with inode 2, and then delete that file
&lt;br&gt;&amp;gt;&amp;gt; and later I create a new file that occupies the same inode, do I
&lt;br&gt;&amp;gt;&amp;gt; have to increase the generation?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Yes.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; This is used by NFS: the NFS clients will refer to files by file
&lt;br&gt;&amp;gt; handle (a value made up of the inode number and generation number). If
&lt;br&gt;&amp;gt; the generation number changes (without the knowledge of the NFS
&lt;br&gt;&amp;gt; clients), then the NFS client will receive ESTALE if it tries to
&lt;br&gt;&amp;gt; access the old file so that it doesn't break the new file.
&lt;/div&gt;&lt;br&gt;I see. Do you know how other file systems handle the generation number
&lt;br&gt;in practice? I guess as long as the file system has a static inode
&lt;br&gt;table like ext3, one can store the generation no for each inode in
&lt;br&gt;that table as well. But what if inodes are dynamically allocated? It
&lt;br&gt;seems to me that I would have to keep a table of every inode ever used
&lt;br&gt;to save the last generation numbers... 
&lt;br&gt;&lt;br&gt;Does &amp;quot;lifetime&amp;quot; refer to the duration of the mount or the existence of
&lt;br&gt;the file system?
&lt;br&gt;&lt;br&gt;&lt;br&gt;Best,
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;-Nikolaus
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;&amp;nbsp;»Time flies like an arrow, fruit flies like a Banana.«
&lt;br&gt;&lt;br&gt;&amp;nbsp; PGP fingerprint: 5B93 61F8 4EA2 E279 ABF6 &amp;nbsp;02CF A9AD B7F8 AE4E 425C
&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Return on Information:
&lt;br&gt;Google Enterprise Search pays you back
&lt;br&gt;Get the facts.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/google-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/google-dev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;fuse-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26762675&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;fuse-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/fuse-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/fuse-devel&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/fuse_entry_param-tp26661841p26762675.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26760910</id>
	<title>Re: fuse_entry_param</title>
	<published>2009-12-12T12:30:32Z</published>
	<updated>2009-12-12T12:30:32Z</updated>
	<author>
		<name>John Muir-2</name>
	</author>
	<content type="html">&amp;gt; How do I have to use the &amp;quot;generation&amp;quot; attribute? The documentation in
&lt;br&gt;&amp;gt; fuse_lowlevel.h says that &amp;quot;The ino/generation pair should be unique for
&lt;br&gt;&amp;gt; the filesystem's lifetime&amp;quot;. But what exactly does unique mean here? If I
&lt;br&gt;&amp;gt; have a file with inode 2, and then delete that file and later I create a
&lt;br&gt;&amp;gt; new file that occupies the same inode, do I have to increase the
&lt;br&gt;&amp;gt; generation?
&lt;br&gt;&lt;br&gt;&lt;br&gt;Yes.
&lt;br&gt;&lt;br&gt;This is used by NFS: the NFS clients will refer to files by file handle (a value made up of the inode number and generation number). If the generation number changes (without the knowledge of the NFS clients), then the NFS client will receive ESTALE if it tries to access the old file so that it doesn't break the new file.
&lt;br&gt;&lt;br&gt;Similarly, this applies the 'FSID' of the file-system itself with NFS, but unfortunately we don't control the FSID. We should change fuse to allow us to set the FSID from the file-system.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;gt; Entries and attributes in my file systems are only changed in response
&lt;br&gt;&amp;gt; to requests from the FUSE kernel module. Does that mean that I can
&lt;br&gt;&amp;gt; effectively set attr_timeout and entry_timeout to infinity?
&lt;br&gt;&lt;br&gt;&lt;br&gt;Yes. In my file-system, the time-out is set to 3600 seconds, although it could be infinite. Since the file-system itself can introduce changes, I use the fuse_lowlevel_notify_inval_inode/entry() functions to invalidate the attributes in the kernel.
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;&lt;br&gt;John.
&lt;br&gt;&lt;br&gt;--
&lt;br&gt;John Muir - &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26760910&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;john@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Return on Information:
&lt;br&gt;Google Enterprise Search pays you back
&lt;br&gt;Get the facts.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/google-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/google-dev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;fuse-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26760910&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;fuse-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/fuse-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/fuse-devel&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/fuse_entry_param-tp26661841p26760910.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26759302</id>
	<title>Re: fuse_entry_param</title>
	<published>2009-12-12T09:07:52Z</published>
	<updated>2009-12-12T09:07:52Z</updated>
	<author>
		<name>Nikolaus Rath</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;Is there really no one able to answer this (and my other mail about the
&lt;br&gt;arguments to fuse_mount and fuse_lowlevel_new) at the moment? I'm sure
&lt;br&gt;there are some other people here who use the low-level API... or are
&lt;br&gt;they all on their (deserved) holidays? *g*
&lt;br&gt;&lt;br&gt;Best,
&lt;br&gt;Nikolaus
&lt;br&gt;&lt;br&gt;&lt;br&gt;Nikolaus Rath &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26759302&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Nikolaus@...&lt;/a&gt;&amp;gt; writes:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hello,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I have some questions about the fuse_entry_param structure:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; How do I have to use the &amp;quot;generation&amp;quot; attribute? The documentation in
&lt;br&gt;&amp;gt; fuse_lowlevel.h says that &amp;quot;The ino/generation pair should be unique for
&lt;br&gt;&amp;gt; the filesystem's lifetime&amp;quot;. But what exactly does unique mean here? If I
&lt;br&gt;&amp;gt; have a file with inode 2, and then delete that file and later I create a
&lt;br&gt;&amp;gt; new file that occupies the same inode, do I have to increase the
&lt;br&gt;&amp;gt; generation?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Entries and attributes in my file systems are only changed in response
&lt;br&gt;&amp;gt; to requests from the FUSE kernel module. Does that mean that I can
&lt;br&gt;&amp;gt; effectively set attr_timeout and entry_timeout to infinity? If not, what
&lt;br&gt;&amp;gt; value should I use?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks!
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;-Nikolaus
&lt;/div&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;-Nikolaus
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;&amp;nbsp;»Time flies like an arrow, fruit flies like a Banana.«
&lt;br&gt;&lt;br&gt;&amp;nbsp; PGP fingerprint: 5B93 61F8 4EA2 E279 ABF6 &amp;nbsp;02CF A9AD B7F8 AE4E 425C
&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Return on Information:
&lt;br&gt;Google Enterprise Search pays you back
&lt;br&gt;Get the facts.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/google-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/google-dev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;fuse-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26759302&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;fuse-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/fuse-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/fuse-devel&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/fuse_entry_param-tp26661841p26759302.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26751482</id>
	<title>Re: FW: Re:  call of fuse_main()  in a application</title>
	<published>2009-12-11T12:17:42Z</published>
	<updated>2009-12-11T12:17:42Z</updated>
	<author>
		<name>Nikolaus Rath</name>
	</author>
	<content type="html">Mylius WTW &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26751482&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Mylius_M@...&lt;/a&gt;&amp;gt; writes:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;&amp;gt; To answer your last question: your program *is* running normally the
&lt;br&gt;&amp;gt;&amp;gt; whole time. If you want your program to do other things in parallel to
&lt;br&gt;&amp;gt;&amp;gt; serving file system requests, you need to use threads or multiple
&lt;br&gt;&amp;gt;&amp;gt; processes.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I &amp;nbsp;use already a lot of threads. Also fuse_main is started in a own thread.
&lt;br&gt;&amp;gt; But nevertheless the whole application comes then daemonizes after launch
&lt;br&gt;&amp;gt; of fuse in one of the threads from the application. For this reasen I guess I 
&lt;br&gt;&amp;gt; must take a own task (process) for fuse.
&lt;/div&gt;&lt;br&gt;No, you don't have to. But daemonization affects the entire process, not
&lt;br&gt;just the current thread. See e.g.
&lt;br&gt;&lt;a href=&quot;http://www.google.com/cse?q=unix+daemonize&amp;sa=Search&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.google.com/cse?q=unix+daemonize&amp;sa=Search&lt;/a&gt;&amp;nbsp;second link.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;-Nikolaus
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;&amp;nbsp;»Time flies like an arrow, fruit flies like a Banana.«
&lt;br&gt;&lt;br&gt;&amp;nbsp; PGP fingerprint: 5B93 61F8 4EA2 E279 ABF6 &amp;nbsp;02CF A9AD B7F8 AE4E 425C
&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Return on Information:
&lt;br&gt;Google Enterprise Search pays you back
&lt;br&gt;Get the facts.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/google-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/google-dev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;fuse-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26751482&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;fuse-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/fuse-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/fuse-devel&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/FW%3A-Re%3A--call-of-fuse_main%28%29--in-a-application-tp26746856p26751482.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26746856</id>
	<title>FW: Re:  call of fuse_main()  in a application</title>
	<published>2009-12-11T08:05:08Z</published>
	<updated>2009-12-11T08:05:08Z</updated>
	<author>
		<name>Mylius WTW</name>
	</author>
	<content type="html">&lt;br&gt;&amp;gt; To answer your last question: your program *is* running normally the
&lt;br&gt;&amp;gt; whole time. If you want your program to do other things in parallel to
&lt;br&gt;&amp;gt; serving file system requests, you need to use threads or multiple
&lt;br&gt;&amp;gt; processes.
&lt;br&gt;&lt;br&gt;&lt;br&gt;I &amp;nbsp;use already a lot of threads. Also fuse_main is started in a own thread.
&lt;br&gt;But nevertheless the whole application comes then daemonizes after launch
&lt;br&gt;of fuse in one of the threads from the application. For this reasen I guess I 
&lt;br&gt;must take a own task (process) for fuse.
&lt;br&gt;&lt;br&gt;Maik
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; Mylius WTW &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26746856&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Mylius_M@...&lt;/a&gt;&amp;gt; writes:
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Hi Nikolaus,
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;&amp;gt; No, fuse_main just daemonizes your program. It is still running, and
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;&amp;gt; after you unmount the file system, fuse_main will return and program
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;&amp;gt; execution will continue normally.
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Thanks, that is right. But how can I call 'fuse_main()' in my
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; application without daemonizes of my program, so that my program runs
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; the whole time normally?
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; Don't get me wrong, but judging from the questions that you have been
&lt;br&gt;&amp;gt; &amp;gt; asking, whatever you are trying to do at the moment is a bit too
&lt;br&gt;&amp;gt; &amp;gt; ambitious for you right now.
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; Why don't you try to get familiar with C programming first, *then* get
&lt;br&gt;&amp;gt; &amp;gt; familiar with unix file systems, and *then* start writing your own file
&lt;br&gt;&amp;gt; &amp;gt; system in FUSE?
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; (To answer your last question: your program *is* running normally the
&lt;br&gt;&amp;gt; &amp;gt; whole time. If you want your program to do other things in parallel to
&lt;br&gt;&amp;gt; &amp;gt; serving file system requests, you need to use threads or multiple
&lt;br&gt;&amp;gt; &amp;gt; processes.)
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; Best,
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp;-Nikolaus
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; -- 
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp;»Time flies like an arrow, fruit flies like a Banana.«
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; PGP fingerprint: 5B93 61F8 4EA2 E279 ABF6 &amp;nbsp;02CF A9AD B7F8 AE4E 425C
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; ------------------------------------------------------------------------------
&lt;br&gt;&amp;gt; &amp;gt; Return on Information:
&lt;br&gt;&amp;gt; &amp;gt; Google Enterprise Search pays you back
&lt;br&gt;&amp;gt; &amp;gt; Get the facts.
&lt;br&gt;&amp;gt; &amp;gt; &lt;a href=&quot;http://p.sf.net/sfu/google-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/google-dev2dev&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; &amp;gt; fuse-devel mailing list
&lt;br&gt;&amp;gt; &amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26746856&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;fuse-devel@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;gt; &lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/fuse-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/fuse-devel&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;&lt;br&gt;______________________________________________________
&lt;br&gt;GRATIS für alle WEB.DE-Nutzer: Die maxdome Movie-FLAT!
&lt;br&gt;Jetzt freischalten unter &lt;a href=&quot;http://movieflat.web.de&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://movieflat.web.de&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Return on Information:
&lt;br&gt;Google Enterprise Search pays you back
&lt;br&gt;Get the facts.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/google-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/google-dev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;fuse-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26746856&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;fuse-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/fuse-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/fuse-devel&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/FW%3A-Re%3A--call-of-fuse_main%28%29--in-a-application-tp26746856p26746856.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26745859</id>
	<title>Re: Know last read of sequence of reads</title>
	<published>2009-12-11T05:50:24Z</published>
	<updated>2009-12-11T05:50:24Z</updated>
	<author>
		<name>Nikolaus Rath</name>
	</author>
	<content type="html">Daniel Garcí­a Coego &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26745859&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;flamealchemist86@...&lt;/a&gt;&amp;gt; writes:
&lt;br&gt;&amp;gt; Hi, I'm designing a file system I'll implement with fuse and I wonder if 
&lt;br&gt;&amp;gt; you can know what is the last read of a sequence, but not the last read 
&lt;br&gt;&amp;gt; of the file. For example, when you open a large PDF, several reads are 
&lt;br&gt;&amp;gt; called, but only the ones that are needed, not the whole file. I want to 
&lt;br&gt;&amp;gt; know if there's a way to recognize the last read of that sequence (hope 
&lt;br&gt;&amp;gt; it's clear). It would be very helpful for me.
&lt;br&gt;&lt;br&gt;It's not clear to me what 'sequence' you mean, but the answer to your
&lt;br&gt;questions is almost certainly no, it is not possible. Just ask yourself
&lt;br&gt;how you would implement anything like that.
&lt;br&gt;&lt;br&gt;&lt;br&gt;Best,
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;-Nikolaus
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;&amp;nbsp;»Time flies like an arrow, fruit flies like a Banana.«
&lt;br&gt;&lt;br&gt;&amp;nbsp; PGP fingerprint: 5B93 61F8 4EA2 E279 ABF6 &amp;nbsp;02CF A9AD B7F8 AE4E 425C
&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Return on Information:
&lt;br&gt;Google Enterprise Search pays you back
&lt;br&gt;Get the facts.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/google-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/google-dev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;fuse-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26745859&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;fuse-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/fuse-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/fuse-devel&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Know-last-read-of-sequence-of-reads-tp26743758p26745859.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26745888</id>
	<title>Re: call of fuse_main()  in a application</title>
	<published>2009-12-11T05:47:43Z</published>
	<updated>2009-12-11T05:47:43Z</updated>
	<author>
		<name>Nikolaus Rath</name>
	</author>
	<content type="html">Mylius WTW &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26745888&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Mylius_M@...&lt;/a&gt;&amp;gt; writes:
&lt;br&gt;&amp;gt; Hi Nikolaus,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; No, fuse_main just daemonizes your program. It is still running, and
&lt;br&gt;&amp;gt;&amp;gt; after you unmount the file system, fuse_main will return and program
&lt;br&gt;&amp;gt;&amp;gt; execution will continue normally.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks, that is right. But how can I call 'fuse_main()' in my
&lt;br&gt;&amp;gt; application without daemonizes of my program, so that my program runs
&lt;br&gt;&amp;gt; the whole time normally?
&lt;br&gt;&lt;br&gt;Don't get me wrong, but judging from the questions that you have been
&lt;br&gt;asking, whatever you are trying to do at the moment is a bit too
&lt;br&gt;ambitious for you right now.
&lt;br&gt;&lt;br&gt;Why don't you try to get familiar with C programming first, *then* get
&lt;br&gt;familiar with unix file systems, and *then* start writing your own file
&lt;br&gt;system in FUSE?
&lt;br&gt;&lt;br&gt;&lt;br&gt;(To answer your last question: your program *is* running normally the
&lt;br&gt;whole time. If you want your program to do other things in parallel to
&lt;br&gt;serving file system requests, you need to use threads or multiple
&lt;br&gt;processes.)
&lt;br&gt;&lt;br&gt;&lt;br&gt;Best,
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;-Nikolaus
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;&amp;nbsp;»Time flies like an arrow, fruit flies like a Banana.«
&lt;br&gt;&lt;br&gt;&amp;nbsp; PGP fingerprint: 5B93 61F8 4EA2 E279 ABF6 &amp;nbsp;02CF A9AD B7F8 AE4E 425C
&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Return on Information:
&lt;br&gt;Google Enterprise Search pays you back
&lt;br&gt;Get the facts.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/google-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/google-dev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;fuse-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26745888&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;fuse-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/fuse-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/fuse-devel&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/call-of-fuse_main%28%29--in-a-application-tp26710141p26745888.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26743758</id>
	<title>Know last read of sequence of reads</title>
	<published>2009-12-11T04:47:15Z</published>
	<updated>2009-12-11T04:47:15Z</updated>
	<author>
		<name>Daniel Garcí­a Coego</name>
	</author>
	<content type="html">Hi, I'm designing a file system I'll implement with fuse and I wonder if 
&lt;br&gt;you can know what is the last read of a sequence, but not the last read 
&lt;br&gt;of the file. For example, when you open a large PDF, several reads are 
&lt;br&gt;called, but only the ones that are needed, not the whole file. I want to 
&lt;br&gt;know if there's a way to recognize the last read of that sequence (hope 
&lt;br&gt;it's clear). It would be very helpful for me.
&lt;br&gt;&lt;br&gt;Thanks.
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Return on Information:
&lt;br&gt;Google Enterprise Search pays you back
&lt;br&gt;Get the facts.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/google-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/google-dev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;fuse-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26743758&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;fuse-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/fuse-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/fuse-devel&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Know-last-read-of-sequence-of-reads-tp26743758p26743758.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26742840</id>
	<title>Re: call of fuse_main()  in a application</title>
	<published>2009-12-11T03:44:06Z</published>
	<updated>2009-12-11T03:44:06Z</updated>
	<author>
		<name>Sven Utcke-3</name>
	</author>
	<content type="html">Hello Maik,
&lt;br&gt;&lt;br&gt;&amp;gt; &amp;gt; No, fuse_main just daemonizes your program. It is still running,
&lt;br&gt;&amp;gt; &amp;gt; and after you unmount the file system, fuse_main will return and
&lt;br&gt;&amp;gt; &amp;gt; program execution will continue normally.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Thanks, that is right. But how can I call 'fuse_main()' in my
&lt;br&gt;&amp;gt; application without daemonizes of my program, so that my program
&lt;br&gt;&amp;gt; runs the whole time normally?
&lt;br&gt;&lt;br&gt;Well, essentially you need to write your own version of fuse_main()
&lt;br&gt;--- how to do this was discussed elsewhere on this list (under the
&lt;br&gt;heading of threads or somesuch) and ought to be locate-able in the
&lt;br&gt;archives.
&lt;br&gt;&lt;br&gt;Sven
&lt;br&gt;-- 
&lt;br&gt;&amp;nbsp; &amp;nbsp; _ &amp;nbsp;___ &amp;nbsp;___ &amp;nbsp;___ 
&lt;br&gt;&amp;nbsp;__| |/ __|| __|/ __| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; The dCache File System
&lt;br&gt;/ _` | (__ | _| \__ \ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;An archive file-system for PB of data
&lt;br&gt;\__,_|\___||_| &amp;nbsp;|___/ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://www.desy.de/~utcke/Data/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.desy.de/~utcke/Data/&lt;/a&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Return on Information:
&lt;br&gt;Google Enterprise Search pays you back
&lt;br&gt;Get the facts.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/google-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/google-dev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;fuse-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26742840&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;fuse-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/fuse-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/fuse-devel&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/call-of-fuse_main%28%29--in-a-application-tp26710141p26742840.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26742283</id>
	<title>Re: call of fuse_main()  in a application</title>
	<published>2009-12-11T02:57:01Z</published>
	<updated>2009-12-11T02:57:01Z</updated>
	<author>
		<name>Mylius WTW</name>
	</author>
	<content type="html">Hi Nikolaus,
&lt;br&gt;&lt;br&gt;&amp;gt; No, fuse_main just daemonizes your program. It is still running, and
&lt;br&gt;&amp;gt; after you unmount the file system, fuse_main will return and program
&lt;br&gt;&amp;gt; execution will continue normally.
&lt;br&gt;&lt;br&gt;Thanks, that is right. But how can I call 'fuse_main()' in my application 
&lt;br&gt;without daemonizes of my program, so that my program runs the whole time normally?
&lt;br&gt;&lt;br&gt;Maik
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;gt; -----Ursprüngliche Nachricht-----
&lt;br&gt;&amp;gt; Von: &amp;quot;Nikolaus Rath&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26742283&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Nikolaus@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; Gesendet: 09.12.09 20:15:11
&lt;br&gt;&amp;gt; An: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26742283&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;fuse-devel@...&lt;/a&gt;
&lt;br&gt;&amp;gt; Betreff: Re: [fuse-devel] call of fuse_main() &amp;nbsp;in a application
&lt;br&gt;&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Mylius WTW &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26742283&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Mylius_M@...&lt;/a&gt;&amp;gt; writes:
&lt;br&gt;&amp;gt; &amp;gt; Hallo,
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; I want to call the function in a application where 
&lt;br&gt;&amp;gt; &amp;gt; a lot of other threads are also running. If I call the
&lt;br&gt;&amp;gt; &amp;gt; fuse_main function with static parameters like:
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; func_xyz()
&lt;br&gt;&amp;gt; &amp;gt; {
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; ... &amp;nbsp;
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; int argc = 2;
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; char *argv[] =
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; { 
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;quot;./fs_net&amp;quot;,
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;quot;mountdir&amp;quot;
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; };
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp;fuse_main(argc, argv, &amp;strFuseFuncSet, NULL);
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp;...
&lt;br&gt;&amp;gt; &amp;gt; }
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; If I start my whole application 'fs_net' , where fuse is only a small part inside, 
&lt;br&gt;&amp;gt; &amp;gt; then my application has stopped after the call of &amp;nbsp;fuse_main(). That
&lt;br&gt;&amp;gt; &amp;gt; is the first think what is wrong. 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; No, fuse_main just daemonizes your program. It is still running, and
&lt;br&gt;&amp;gt; after you unmount the file system, fuse_main will return and program
&lt;br&gt;&amp;gt; execution will continue normally.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Best,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;-Nikolaus
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; -- 
&lt;br&gt;&amp;gt; &amp;nbsp;»Time flies like an arrow, fruit flies like a Banana.«
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; PGP fingerprint: 5B93 61F8 4EA2 E279 ABF6 &amp;nbsp;02CF A9AD B7F8 AE4E 425C
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ------------------------------------------------------------------------------
&lt;br&gt;&amp;gt; Return on Information:
&lt;br&gt;&amp;gt; Google Enterprise Search pays you back
&lt;br&gt;&amp;gt; Get the facts.
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://p.sf.net/sfu/google-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/google-dev2dev&lt;/a&gt;&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; fuse-devel mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26742283&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;fuse-devel@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/fuse-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/fuse-devel&lt;/a&gt;&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;&lt;br&gt;______________________________________________________
&lt;br&gt;GRATIS für alle WEB.DE-Nutzer: Die maxdome Movie-FLAT!
&lt;br&gt;Jetzt freischalten unter &lt;a href=&quot;http://movieflat.web.de&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://movieflat.web.de&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Return on Information:
&lt;br&gt;Google Enterprise Search pays you back
&lt;br&gt;Get the facts.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/google-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/google-dev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;fuse-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26742283&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;fuse-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/fuse-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/fuse-devel&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/call-of-fuse_main%28%29--in-a-application-tp26710141p26742283.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26741059</id>
	<title>Re: fuse example 'fusexmp.c' doesn't work as download path for a browser</title>
	<published>2009-12-11T01:17:47Z</published>
	<updated>2009-12-11T01:17:47Z</updated>
	<author>
		<name>Mylius WTW</name>
	</author>
	<content type="html">Hi Nikolaus,
&lt;br&gt;that is right. With help of Sven I got the information that 
&lt;br&gt;the fusexmp.c mirrors the root directory of my linux and therefore 
&lt;br&gt;is filing the mountdir with the contents from my root-dir and
&lt;br&gt;I got then also the root rights for the mountpoint. 
&lt;br&gt;&lt;br&gt;Best Regards,
&lt;br&gt;Maik
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;gt; -----Ursprüngliche Nachricht-----
&lt;br&gt;&amp;gt; Von: &amp;quot;Nikolaus Rath&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26741059&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Nikolaus@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; Gesendet: 11.12.09 00:13:23
&lt;br&gt;&amp;gt; An: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26741059&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;fuse-devel@...&lt;/a&gt;
&lt;br&gt;&amp;gt; Betreff: Re: [fuse-devel] fuse example 'fusexmp.c' doesn't work as download path for a browser
&lt;br&gt;&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Sven Utcke &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26741059&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;utcke@...&lt;/a&gt;&amp;gt; writes:
&lt;br&gt;&amp;gt; &amp;gt; Hello Nikolaus,
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; user1@UbuntuVM:~/workspace/fuse/fusetest$ ./fusexmp Fusexmp/
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; user1@UbuntuVM:~/workspace/fuse/fusetest$ ls -l
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; insgesamt 1752
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; -rwxr-xr-x &amp;nbsp;1 &amp;nbsp; user1 user1 &amp;nbsp; 15565 2009-12-04 10:19 fusexmp
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; drwxr-xr-x 21 root &amp;nbsp; &amp;nbsp;root &amp;nbsp; &amp;nbsp; &amp;nbsp; 4096 2009-10-20 14:22 Fusexmp
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; -rw-r--r-- &amp;nbsp; &amp;nbsp;1 &amp;nbsp; user1 user1 &amp;nbsp; &amp;nbsp;9646 2009-12-07 11:03 fusexmp.c
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt; Which uid and gid does the getattr() function of your file system return
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;&amp;gt; for '/'?
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; The results are:
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; call: xmp_getattr
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; call: ------&amp;gt; path: '/'
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; call: uid: '0'
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; call: gid: '0'
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; But why I get the root rights for the mountdir 
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; after starting of fuse?
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Because you told FUSE to do so. If you don't want the directory to be
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; owned by root, don't return uid=gid=0 for it but the UID of the user
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; that should be owner of the directory.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Wild guess: You are aware that '/' refers to the root of *your*
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; filesystem, i.e. the mountpoint, and not the real root directory of your
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; system, aren't you?
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Well, no, actually it isn't, nor is he. &amp;nbsp;Maik is using an essentially
&lt;br&gt;&amp;gt; &amp;gt; unmodified fusexmp.c, which simply mirrors the root, so that '/' does
&lt;br&gt;&amp;gt; &amp;gt; indeed refer to the systems root filesystem.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; He is? I thought he had modified it by now, because I remember him
&lt;br&gt;&amp;gt; complaining that he had files in his mountpoint with a freshly mounted
&lt;br&gt;&amp;gt; fs...
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Best,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;-Nikolaus
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; -- 
&lt;br&gt;&amp;gt; &amp;nbsp;»Time flies like an arrow, fruit flies like a Banana.«
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; PGP fingerprint: 5B93 61F8 4EA2 E279 ABF6 &amp;nbsp;02CF A9AD B7F8 AE4E 425C
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ------------------------------------------------------------------------------
&lt;br&gt;&amp;gt; Return on Information:
&lt;br&gt;&amp;gt; Google Enterprise Search pays you back
&lt;br&gt;&amp;gt; Get the facts.
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://p.sf.net/sfu/google-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/google-dev2dev&lt;/a&gt;&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; fuse-devel mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26741059&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;fuse-devel@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/fuse-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/fuse-devel&lt;/a&gt;&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;&lt;br&gt;___________________________________________________________
&lt;br&gt;Preisknaller: WEB.DE DSL Flatrate für nur 16,99 Euro/mtl.! 
&lt;br&gt;&lt;a href=&quot;http://produkte.web.de/go/02/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://produkte.web.de/go/02/&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Return on Information:
&lt;br&gt;Google Enterprise Search pays you back
&lt;br&gt;Get the facts.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/google-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/google-dev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;fuse-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26741059&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;fuse-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/fuse-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/fuse-devel&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/fuse-example--%27fusexmp.c%27-doesn%27t-work-as-download-path-for-a-browser-tp26626492p26741059.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26736136</id>
	<title>Re: fuse example 'fusexmp.c' doesn't work as download path for a browser</title>
	<published>2009-12-10T13:38:17Z</published>
	<updated>2009-12-10T13:38:17Z</updated>
	<author>
		<name>Nikolaus Rath</name>
	</author>
	<content type="html">Sven Utcke &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26736136&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;utcke@...&lt;/a&gt;&amp;gt; writes:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hello Nikolaus,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; user1@UbuntuVM:~/workspace/fuse/fusetest$ ./fusexmp Fusexmp/
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; user1@UbuntuVM:~/workspace/fuse/fusetest$ ls -l
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; insgesamt 1752
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; -rwxr-xr-x &amp;nbsp;1 &amp;nbsp; user1 user1 &amp;nbsp; 15565 2009-12-04 10:19 fusexmp
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; drwxr-xr-x 21 root &amp;nbsp; &amp;nbsp;root &amp;nbsp; &amp;nbsp; &amp;nbsp; 4096 2009-10-20 14:22 Fusexmp
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; -rw-r--r-- &amp;nbsp; &amp;nbsp;1 &amp;nbsp; user1 user1 &amp;nbsp; &amp;nbsp;9646 2009-12-07 11:03 fusexmp.c
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; Which uid and gid does the getattr() function of your file system return
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; for '/'?
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; The results are:
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; call: xmp_getattr
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; call: ------&amp;gt; path: '/'
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; call: uid: '0'
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; call: gid: '0'
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; But why I get the root rights for the mountdir 
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; after starting of fuse?
&lt;br&gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; Because you told FUSE to do so. If you don't want the directory to be
&lt;br&gt;&amp;gt;&amp;gt; owned by root, don't return uid=gid=0 for it but the UID of the user
&lt;br&gt;&amp;gt;&amp;gt; that should be owner of the directory.
&lt;br&gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; Wild guess: You are aware that '/' refers to the root of *your*
&lt;br&gt;&amp;gt;&amp;gt; filesystem, i.e. the mountpoint, and not the real root directory of your
&lt;br&gt;&amp;gt;&amp;gt; system, aren't you?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Well, no, actually it isn't, nor is he. &amp;nbsp;Maik is using an essentially
&lt;br&gt;&amp;gt; unmodified fusexmp.c, which simply mirrors the root, so that '/' does
&lt;br&gt;&amp;gt; indeed refer to the systems root filesystem.
&lt;/div&gt;&lt;br&gt;He is? I thought he had modified it by now, because I remember him
&lt;br&gt;complaining that he had files in his mountpoint with a freshly mounted
&lt;br&gt;fs...
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Best,
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;-Nikolaus
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;&amp;nbsp;»Time flies like an arrow, fruit flies like a Banana.«
&lt;br&gt;&lt;br&gt;&amp;nbsp; PGP fingerprint: 5B93 61F8 4EA2 E279 ABF6 &amp;nbsp;02CF A9AD B7F8 AE4E 425C
&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Return on Information:
&lt;br&gt;Google Enterprise Search pays you back
&lt;br&gt;Get the facts.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/google-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/google-dev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;fuse-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26736136&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;fuse-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/fuse-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/fuse-devel&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/fuse-example--%27fusexmp.c%27-doesn%27t-work-as-download-path-for-a-browser-tp26626492p26736136.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26734477</id>
	<title>Re: fuse example 'fusexmp.c' doesn't work as download path for a browser</title>
	<published>2009-12-10T13:02:15Z</published>
	<updated>2009-12-10T13:02:15Z</updated>
	<author>
		<name>Sven Utcke-3</name>
	</author>
	<content type="html">Hello Nikolaus,
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; user1@UbuntuVM:~/workspace/fuse/fusetest$ ./fusexmp Fusexmp/
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; user1@UbuntuVM:~/workspace/fuse/fusetest$ ls -l
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; insgesamt 1752
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; -rwxr-xr-x &amp;nbsp;1 &amp;nbsp; user1 user1 &amp;nbsp; 15565 2009-12-04 10:19 fusexmp
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; drwxr-xr-x 21 root &amp;nbsp; &amp;nbsp;root &amp;nbsp; &amp;nbsp; &amp;nbsp; 4096 2009-10-20 14:22 Fusexmp
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; -rw-r--r-- &amp;nbsp; &amp;nbsp;1 &amp;nbsp; user1 user1 &amp;nbsp; &amp;nbsp;9646 2009-12-07 11:03 fusexmp.c
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Which uid and gid does the getattr() function of your file system return
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; for '/'?
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; The results are:
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; call: xmp_getattr
&lt;br&gt;&amp;gt; &amp;gt; call: ------&amp;gt; path: '/'
&lt;br&gt;&amp;gt; &amp;gt; call: uid: '0'
&lt;br&gt;&amp;gt; &amp;gt; call: gid: '0'
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; But why I get the root rights for the mountdir 
&lt;br&gt;&amp;gt; &amp;gt; after starting of fuse?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Because you told FUSE to do so. If you don't want the directory to be
&lt;br&gt;&amp;gt; owned by root, don't return uid=gid=0 for it but the UID of the user
&lt;br&gt;&amp;gt; that should be owner of the directory.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Wild guess: You are aware that '/' refers to the root of *your*
&lt;br&gt;&amp;gt; filesystem, i.e. the mountpoint, and not the real root directory of your
&lt;br&gt;&amp;gt; system, aren't you?
&lt;/div&gt;&lt;br&gt;Well, no, actually it isn't, nor is he. &amp;nbsp;Maik is using an essentially
&lt;br&gt;unmodified fusexmp.c, which simply mirrors the root, so that '/' does
&lt;br&gt;indeed refer to the systems root filesystem.
&lt;br&gt;&lt;br&gt;Sven
&lt;br&gt;-- 
&lt;br&gt;&amp;nbsp; &amp;nbsp; _ &amp;nbsp;___ &amp;nbsp;___ &amp;nbsp;___ 
&lt;br&gt;&amp;nbsp;__| |/ __|| __|/ __| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; The dCache File System
&lt;br&gt;/ _` | (__ | _| \__ \ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;An archive file-system for PB of data
&lt;br&gt;\__,_|\___||_| &amp;nbsp;|___/ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://www.desy.de/~utcke/Data/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.desy.de/~utcke/Data/&lt;/a&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Return on Information:
&lt;br&gt;Google Enterprise Search pays you back
&lt;br&gt;Get the facts.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/google-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/google-dev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;fuse-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26734477&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;fuse-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/fuse-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/fuse-devel&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/fuse-example--%27fusexmp.c%27-doesn%27t-work-as-download-path-for-a-browser-tp26626492p26734477.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26733151</id>
	<title>Re: Fuse eats to much memory</title>
	<published>2009-12-10T11:28:45Z</published>
	<updated>2009-12-10T11:28:45Z</updated>
	<author>
		<name>Andrey Kolashtov</name>
	</author>
	<content type="html">Can anybody help me? Is it usual behavior of fuse or not?
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Return on Information:
&lt;br&gt;Google Enterprise Search pays you back
&lt;br&gt;Get the facts.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/google-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/google-dev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;fuse-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26733151&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;fuse-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/fuse-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/fuse-devel&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Fuse-eats-to-much-memory-tp26661033p26733151.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26729685</id>
	<title>Re: fuse example 'fusexmp.c' doesn't work as download path for a browser</title>
	<published>2009-12-10T05:35:26Z</published>
	<updated>2009-12-10T05:35:26Z</updated>
	<author>
		<name>Nikolaus Rath</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;Please consider to write your reply *below* the quote, deleting the
&lt;br&gt;parts that you are not answering to.
&lt;br&gt;&lt;br&gt;&lt;br&gt;Mylius WTW &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26729685&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Mylius_M@...&lt;/a&gt;&amp;gt; writes:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; That should actually not the reason, because I start fuse
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; as (e.g) user1.
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; 'Fusexmp' is my fuse mountpoint. Before I start fuse
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; is that the 'ls -l' &amp;nbsp;print of my fuse folder.
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; user1@UbuntuVM:~/workspace/fuse/fusetest$ ls -l
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; insgesamt 1752
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; -rwxr-xr-x 1 &amp;nbsp;user1 user1 &amp;nbsp; 15565 2009-12-04 10:19 fusexmp
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; drwxr-xr-x 2 user1user1 &amp;nbsp; &amp;nbsp;4096 2009-12-04 09:41 Fusexmp
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; -rw-r--r-- 1 &amp;nbsp; user1 user1 &amp;nbsp; &amp;nbsp;9646 2009-12-07 11:03 fusexmp.c
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; Nothing is root.
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; And after starting of fuse, &amp;nbsp;the mountpoint 'Fusexmp' has root rights:
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; user1@UbuntuVM:~/workspace/fuse/fusetest$ ./fusexmp Fusexmp/
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; user1@UbuntuVM:~/workspace/fuse/fusetest$ ls -l
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; insgesamt 1752
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; -rwxr-xr-x &amp;nbsp;1 &amp;nbsp; user1 user1 &amp;nbsp; 15565 2009-12-04 10:19 fusexmp
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; drwxr-xr-x 21 root &amp;nbsp; &amp;nbsp;root &amp;nbsp; &amp;nbsp; &amp;nbsp; 4096 2009-10-20 14:22 Fusexmp
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; -rw-r--r-- &amp;nbsp; &amp;nbsp;1 &amp;nbsp; user1 user1 &amp;nbsp; &amp;nbsp;9646 2009-12-07 11:03 fusexmp.c
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; Strange .... &amp;nbsp;. &amp;nbsp; ?
&lt;br&gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; Which uid and gid does the getattr() function of your file system return
&lt;br&gt;&amp;gt;&amp;gt; for '/'?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The results are:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; call: xmp_getattr
&lt;br&gt;&amp;gt; call: ------&amp;gt; path: '/'
&lt;br&gt;&amp;gt; call: uid: '0'
&lt;br&gt;&amp;gt; call: gid: '0'
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; But why I get the root rights for the mountdir 
&lt;br&gt;&amp;gt; after starting of fuse?
&lt;/div&gt;&lt;br&gt;Because you told FUSE to do so. If you don't want the directory to be
&lt;br&gt;owned by root, don't return uid=gid=0 for it but the UID of the user
&lt;br&gt;that should be owner of the directory.
&lt;br&gt;&lt;br&gt;Wild guess: You are aware that '/' refers to the root of *your*
&lt;br&gt;filesystem, i.e. the mountpoint, and not the real root directory of your
&lt;br&gt;system, aren't you?
&lt;br&gt;&lt;br&gt;&lt;br&gt;Best,
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;-Nikolaus
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;&amp;nbsp;»Time flies like an arrow, fruit flies like a Banana.«
&lt;br&gt;&lt;br&gt;&amp;nbsp; PGP fingerprint: 5B93 61F8 4EA2 E279 ABF6 &amp;nbsp;02CF A9AD B7F8 AE4E 425C
&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Return on Information:
&lt;br&gt;Google Enterprise Search pays you back
&lt;br&gt;Get the facts.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/google-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/google-dev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;fuse-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26729685&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;fuse-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/fuse-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/fuse-devel&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/fuse-example--%27fusexmp.c%27-doesn%27t-work-as-download-path-for-a-browser-tp26626492p26729685.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26726081</id>
	<title>Re: fuse example 'fusexmp.c' doesn't work as download path for a browser</title>
	<published>2009-12-10T03:55:20Z</published>
	<updated>2009-12-10T03:55:20Z</updated>
	<author>
		<name>Sven Utcke-3</name>
	</author>
	<content type="html">Hello Maik,
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; user1 user1@UbuntuVM:~/workspace/fuse/fusetest/test$ ls -l
&lt;br&gt;&amp;gt; ...
&lt;br&gt;&amp;gt; -rwxr-xr-x 1 user1 user1 15565 2009-12-10 11:19 fusexmp
&lt;br&gt;&amp;gt; drwxrwxrwx 2 user1 user1 &amp;nbsp;4096 2009-12-10 10:37 Fusexmp
&lt;br&gt;&amp;gt; -rw-r--r-- 1 user1 user1 &amp;nbsp;9878 2009-12-10 11:13 fusexmp.c
&lt;br&gt;&amp;gt; ...
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; user1@UbuntuVM:~/workspace/fuse/fusetest/test$ ./fusexmp Fusexmp/
&lt;br&gt;&amp;gt; user1@UbuntuVM:~/workspace/fuse/fusetest/test$ ls -l
&lt;br&gt;&amp;gt; ...
&lt;br&gt;&amp;gt; -rwxr-xr-x 1 user1 user1 15565 2009-12-10 11:19 fusexmp
&lt;br&gt;&amp;gt; drwxr-xr-x 21 root &amp;nbsp; &amp;nbsp;root &amp;nbsp; &amp;nbsp; 4096 2009-10-20 14:22 Fusexmp
&lt;br&gt;&amp;gt; -rw-r--r-- 1 user1 user1 &amp;nbsp;9878 2009-12-10 11:13 fusexmp.c
&lt;/div&gt;&lt;br&gt;Well, what did you expect? &amp;nbsp;Fusexmp/ is now a mirror of /, which is
&lt;br&gt;customarily owned by root...
&lt;br&gt;&lt;br&gt;&amp;gt; The results are:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; call: xmp_getattr
&lt;br&gt;&amp;gt; call: ------&amp;gt; path: '/'
&lt;br&gt;&amp;gt; call: uid: '0'
&lt;br&gt;&amp;gt; call: gid: '0'
&lt;br&gt;&lt;br&gt;See, you are stating '/' --- not Fusexmp/, but '/' which just happens
&lt;br&gt;to get mirrored to Fusexmp/ --- including all the original stat
&lt;br&gt;information like rights and date (you noticed that changed too, didn't
&lt;br&gt;you?).
&lt;br&gt;&lt;br&gt;&amp;gt; WIth the try to townload a file in the fuse mountdir 
&lt;br&gt;&amp;gt; I got the error messages:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ERROR: with lstat() in xmp_getattr
&lt;br&gt;&amp;gt; ERROR: with ------&amp;gt; path: '/downloadfile.jpg'
&lt;br&gt;&amp;gt; ERROR: with errno: 'No such file or directory'
&lt;br&gt;&lt;br&gt;Sure --- even Fuse can not change the fact that you are not allowed to
&lt;br&gt;write into the root as non-root user...
&lt;br&gt;&lt;br&gt;Does this help? &amp;nbsp;Shameless plug: would it be a help to rent me (or
&lt;br&gt;some of the others) some more and have this discussion in private?
&lt;br&gt;&lt;br&gt;Sven
&lt;br&gt;-- 
&lt;br&gt;&amp;nbsp; &amp;nbsp; _ &amp;nbsp;___ &amp;nbsp;___ &amp;nbsp;___ 
&lt;br&gt;&amp;nbsp;__| |/ __|| __|/ __| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; The dCache File System
&lt;br&gt;/ _` | (__ | _| \__ \ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;An archive file-system for PB of data
&lt;br&gt;\__,_|\___||_| &amp;nbsp;|___/ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://www.desy.de/~utcke/Data/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.desy.de/~utcke/Data/&lt;/a&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Return on Information:
&lt;br&gt;Google Enterprise Search pays you back
&lt;br&gt;Get the facts.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/google-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/google-dev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;fuse-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26726081&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;fuse-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/fuse-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/fuse-devel&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/fuse-example--%27fusexmp.c%27-doesn%27t-work-as-download-path-for-a-browser-tp26626492p26726081.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26725337</id>
	<title>Re: fuse example 'fusexmp.c' doesn't work as download path for a browser</title>
	<published>2009-12-10T02:49:10Z</published>
	<updated>2009-12-10T02:49:10Z</updated>
	<author>
		<name>Mylius WTW</name>
	</author>
	<content type="html">The problem will be that after start of fuse the mountdir 'Fusexmp'
&lt;br&gt;is root. And if I try to download a file with a browser with user right
&lt;br&gt;then it is not possible to save the file inside the mountpoint, because
&lt;br&gt;only root has then the rights to write inside the file.
&lt;br&gt;&lt;br&gt;&lt;br&gt;user1 user1@UbuntuVM:~/workspace/fuse/fusetest/test$ ls -l
&lt;br&gt;...
&lt;br&gt;-rwxr-xr-x 1 user1 user1 15565 2009-12-10 11:19 fusexmp
&lt;br&gt;drwxrwxrwx 2 user1 user1 &amp;nbsp;4096 2009-12-10 10:37 Fusexmp
&lt;br&gt;-rw-r--r-- 1 user1 user1 &amp;nbsp;9878 2009-12-10 11:13 fusexmp.c
&lt;br&gt;...
&lt;br&gt;&lt;br&gt;user1@UbuntuVM:~/workspace/fuse/fusetest/test$ ./fusexmp Fusexmp/
&lt;br&gt;user1@UbuntuVM:~/workspace/fuse/fusetest/test$ ls -l
&lt;br&gt;...
&lt;br&gt;-rwxr-xr-x 1 user1 user1 15565 2009-12-10 11:19 fusexmp
&lt;br&gt;drwxr-xr-x 21 root &amp;nbsp; &amp;nbsp;root &amp;nbsp; &amp;nbsp; 4096 2009-10-20 14:22 Fusexmp
&lt;br&gt;-rw-r--r-- 1 user1 user1 &amp;nbsp;9878 2009-12-10 11:13 fusexmp.c
&lt;br&gt;...
&lt;br&gt;&lt;br&gt;&lt;br&gt;I habe print the stat uid and gid values at start up if fuse with:
&lt;br&gt;&lt;br&gt;static int _getattr(const char *path, struct stat *stbuf)
&lt;br&gt;{
&lt;br&gt;&amp;nbsp; &amp;nbsp;int res;
&lt;br&gt;&amp;nbsp; &amp;nbsp;char sbBuff[4096];
&lt;br&gt;&amp;nbsp; 
&lt;br&gt;&amp;nbsp; strcpy(sbBuff, path);
&lt;br&gt;&lt;br&gt;&amp;nbsp; _fs_FU_logInfo(&amp;quot;xmp_getattr&amp;quot;);
&lt;br&gt;&lt;br&gt;&amp;nbsp; sprintf(sbBuff, &amp;quot;---XXXXXX---&amp;gt; path: '%s'&amp;quot;, path);
&lt;br&gt;&amp;nbsp; _fs_FU_logInfo(sbBuff);
&lt;br&gt;&lt;br&gt;&amp;nbsp; res = lstat(path, stbuf);
&lt;br&gt;&lt;br&gt;&amp;nbsp; if (res == -1)
&lt;br&gt;&amp;nbsp; {
&lt;br&gt;&amp;nbsp; &amp;nbsp; _fs_FU_errorInfo(&amp;quot;lstat() in _getattr&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; _fs_FU_errorInfo(sbBuff); &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; sprintf(sbBuff, &amp;quot;errno: '%s'&amp;quot;, strerror(errno));
&lt;br&gt;&amp;nbsp; &amp;nbsp; _fs_FU_errorInfo(sbBuff); &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; return -errno;
&lt;br&gt;&amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; sprintf(sbBuff, &amp;quot;uid: '%d'&amp;quot;, stbuf-&amp;gt;st_uid);
&lt;br&gt;&amp;nbsp; _fs_FU_logInfo(sbBuff);
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; sprintf(sbBuff, &amp;quot;gid: '%d'&amp;quot;, stbuf-&amp;gt;st_gid);
&lt;br&gt;&amp;nbsp; _fs_FU_logInfo(sbBuff);
&lt;br&gt;&lt;br&gt;&amp;nbsp; return 0;
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;The results are:
&lt;br&gt;&lt;br&gt;call: xmp_getattr
&lt;br&gt;call: ------&amp;gt; path: '/'
&lt;br&gt;call: uid: '0'
&lt;br&gt;call: gid: '0'
&lt;br&gt;&lt;br&gt;&lt;br&gt;WIth the try to townload a file in the fuse mountdir 
&lt;br&gt;I got the error messages:
&lt;br&gt;&lt;br&gt;ERROR: with lstat() in xmp_getattr
&lt;br&gt;ERROR: with ------&amp;gt; path: '/downloadfile.jpg'
&lt;br&gt;ERROR: with errno: 'No such file or directory'
&lt;br&gt;&lt;br&gt;But I guess the is because of the root rigths.
&lt;br&gt;But why I get the root rights for the mountdir 
&lt;br&gt;after starting of fuse?
&lt;br&gt;&lt;br&gt;&lt;br&gt;user1@UbuntuVM:~/workspace/fuse/fusetest/test$ fusermount -u Fusexmp 
&lt;br&gt;user1@UbuntuVM:~/workspace/fuse/fusetest/test$ ls -l
&lt;br&gt;-rwxr-xr-x 1 user1 user1 15601 2009-12-10 11:43 fusexmp
&lt;br&gt;drwxrwxrwx 2 user1 user1 &amp;nbsp;4096 2009-12-10 10:37 Fusexmp
&lt;br&gt;-rw-r--r-- 1 user1 user1 &amp;nbsp;9961 2009-12-10 11:44 fusexmp.c
&lt;br&gt;&lt;br&gt;&lt;br&gt;Maik
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;gt; -----Ursprüngliche Nachricht-----
&lt;br&gt;&amp;gt; Von: &amp;quot;Nikolaus Rath&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26725337&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Nikolaus@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; Gesendet: 09.12.09 17:40:13
&lt;br&gt;&amp;gt; An: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26725337&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;fuse-devel@...&lt;/a&gt;
&lt;br&gt;&amp;gt; Betreff: Re: [fuse-devel] fuse example 'fusexmp.c' doesn't work as download path for a browser
&lt;br&gt;&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Mylius WTW &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26725337&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Mylius_M@...&lt;/a&gt;&amp;gt; writes:
&lt;br&gt;&amp;gt; &amp;gt; That should actually not the reason, because I start fuse
&lt;br&gt;&amp;gt; &amp;gt; as (e.g) user1.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; 'Fusexmp' is my fuse mountpoint. Before I start fuse
&lt;br&gt;&amp;gt; &amp;gt; is that the 'ls -l' &amp;nbsp;print of my fuse folder.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; user1@UbuntuVM:~/workspace/fuse/fusetest$ ls -l
&lt;br&gt;&amp;gt; &amp;gt; insgesamt 1752
&lt;br&gt;&amp;gt; &amp;gt; -rwxr-xr-x 1 &amp;nbsp;user1 user1 &amp;nbsp; 15565 2009-12-04 10:19 fusexmp
&lt;br&gt;&amp;gt; &amp;gt; drwxr-xr-x 2 user1user1 &amp;nbsp; &amp;nbsp;4096 2009-12-04 09:41 Fusexmp
&lt;br&gt;&amp;gt; &amp;gt; -rw-r--r-- 1 &amp;nbsp; user1 user1 &amp;nbsp; &amp;nbsp;9646 2009-12-07 11:03 fusexmp.c
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Nothing is root.
&lt;br&gt;&amp;gt; &amp;gt; And after starting of fuse, &amp;nbsp;the mountpoint 'Fusexmp' has root rights:
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; &amp;gt; user1@UbuntuVM:~/workspace/fuse/fusetest$ ./fusexmp Fusexmp/
&lt;br&gt;&amp;gt; &amp;gt; user1@UbuntuVM:~/workspace/fuse/fusetest$ ls -l
&lt;br&gt;&amp;gt; &amp;gt; insgesamt 1752
&lt;br&gt;&amp;gt; &amp;gt; -rwxr-xr-x &amp;nbsp;1 &amp;nbsp; user1 user1 &amp;nbsp; 15565 2009-12-04 10:19 fusexmp
&lt;br&gt;&amp;gt; &amp;gt; drwxr-xr-x 21 root &amp;nbsp; &amp;nbsp;root &amp;nbsp; &amp;nbsp; &amp;nbsp; 4096 2009-10-20 14:22 Fusexmp
&lt;br&gt;&amp;gt; &amp;gt; -rw-r--r-- &amp;nbsp; &amp;nbsp;1 &amp;nbsp; user1 user1 &amp;nbsp; &amp;nbsp;9646 2009-12-07 11:03 fusexmp.c
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Strange .... &amp;nbsp;. &amp;nbsp; ?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Which uid and gid does the getattr() function of your file system return
&lt;br&gt;&amp;gt; for '/'?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;-Nikolaus
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; -- 
&lt;br&gt;&amp;gt; &amp;nbsp;»Time flies like an arrow, fruit flies like a Banana.«
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; PGP fingerprint: 5B93 61F8 4EA2 E279 ABF6 &amp;nbsp;02CF A9AD B7F8 AE4E 425C
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ------------------------------------------------------------------------------
&lt;br&gt;&amp;gt; Return on Information:
&lt;br&gt;&amp;gt; Google Enterprise Search pays you back
&lt;br&gt;&amp;gt; Get the facts.
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://p.sf.net/sfu/google-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/google-dev2dev&lt;/a&gt;&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; fuse-devel mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26725337&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;fuse-devel@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/fuse-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/fuse-devel&lt;/a&gt;&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;&lt;br&gt;___________________________________________________________
&lt;br&gt;Preisknaller: WEB.DE DSL Flatrate für nur 16,99 Euro/mtl.! 
&lt;br&gt;&lt;a href=&quot;http://produkte.web.de/go/02/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://produkte.web.de/go/02/&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Return on Information:
&lt;br&gt;Google Enterprise Search pays you back
&lt;br&gt;Get the facts.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/google-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/google-dev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;fuse-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26725337&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;fuse-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/fuse-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/fuse-devel&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/fuse-example--%27fusexmp.c%27-doesn%27t-work-as-download-path-for-a-browser-tp26626492p26725337.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26719968</id>
	<title>Re: fuse path encodings</title>
	<published>2009-12-09T16:03:31Z</published>
	<updated>2009-12-09T16:03:31Z</updated>
	<author>
		<name>Matt Turner-4</name>
	</author>
	<content type="html">Ok thanks guys, this last round has cleared things up I think. I guess the
&lt;br&gt;requirement about no '\0's just limits the encodings you can use to 8-bit
&lt;br&gt;safe ones. I have to say I've never seen a system in a UTF-16 locale. My
&lt;br&gt;filesystem doesn't care what the byte sequences mean, and it sounds like I'm
&lt;br&gt;safe to go on handling them opaquely.
&lt;br&gt;&lt;br&gt;Another thought that hit me is that filesystems like mine that are mainly
&lt;br&gt;used interactively (e.g. browsed with a GUI, or with &amp;quot;ls; cd; ls; cd&amp;quot;) will
&lt;br&gt;likely only ever get requests for &amp;quot;/&amp;quot;, and thereafter paths that they
&lt;br&gt;themselves have returned from readdir() anyway.
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;&lt;br&gt;matt
&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Return on Information:
&lt;br&gt;Google Enterprise Search pays you back
&lt;br&gt;Get the facts.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/google-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/google-dev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;fuse-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26719968&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;fuse-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/fuse-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/fuse-devel&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/fuse-path-encodings-tp26634836p26719968.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26715896</id>
	<title>Re: call of fuse_main()  in a application</title>
	<published>2009-12-09T10:08:49Z</published>
	<updated>2009-12-09T10:08:49Z</updated>
	<author>
		<name>Nikolaus Rath</name>
	</author>
	<content type="html">Mylius WTW &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26715896&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Mylius_M@...&lt;/a&gt;&amp;gt; writes:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hallo,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I want to call the function in a application where 
&lt;br&gt;&amp;gt; a lot of other threads are also running. If I call the
&lt;br&gt;&amp;gt; fuse_main function with static parameters like:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; func_xyz()
&lt;br&gt;&amp;gt; {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; ... &amp;nbsp;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; int argc = 2;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; char *argv[] =
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; { 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;quot;./fs_net&amp;quot;,
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;quot;mountdir&amp;quot;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; };
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;fuse_main(argc, argv, &amp;strFuseFuncSet, NULL);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;...
&lt;br&gt;&amp;gt; }
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; If I start my whole application 'fs_net' , where fuse is only a small part inside, 
&lt;br&gt;&amp;gt; then my application has stopped after the call of &amp;nbsp;fuse_main(). That
&lt;br&gt;&amp;gt; is the first think what is wrong. 
&lt;/div&gt;&lt;br&gt;No, fuse_main just daemonizes your program. It is still running, and
&lt;br&gt;after you unmount the file system, fuse_main will return and program
&lt;br&gt;execution will continue normally.
&lt;br&gt;&lt;br&gt;&lt;br&gt;Best,
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;-Nikolaus
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;&amp;nbsp;»Time flies like an arrow, fruit flies like a Banana.«
&lt;br&gt;&lt;br&gt;&amp;nbsp; PGP fingerprint: 5B93 61F8 4EA2 E279 ABF6 &amp;nbsp;02CF A9AD B7F8 AE4E 425C
&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Return on Information:
&lt;br&gt;Google Enterprise Search pays you back
&lt;br&gt;Get the facts.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/google-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/google-dev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;fuse-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26715896&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;fuse-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/fuse-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/fuse-devel&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/call-of-fuse_main%28%29--in-a-application-tp26710141p26715896.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26711760</id>
	<title>Re: fuse example 'fusexmp.c' doesn't work as download path for a browser</title>
	<published>2009-12-09T07:04:37Z</published>
	<updated>2009-12-09T07:04:37Z</updated>
	<author>
		<name>Nikolaus Rath</name>
	</author>
	<content type="html">Mylius WTW &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26711760&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Mylius_M@...&lt;/a&gt;&amp;gt; writes:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; That should actually not the reason, because I start fuse
&lt;br&gt;&amp;gt; as (e.g) user1.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 'Fusexmp' is my fuse mountpoint. Before I start fuse
&lt;br&gt;&amp;gt; is that the 'ls -l' &amp;nbsp;print of my fuse folder.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; user1@UbuntuVM:~/workspace/fuse/fusetest$ ls -l
&lt;br&gt;&amp;gt; insgesamt 1752
&lt;br&gt;&amp;gt; -rwxr-xr-x 1 &amp;nbsp;user1 user1 &amp;nbsp; 15565 2009-12-04 10:19 fusexmp
&lt;br&gt;&amp;gt; drwxr-xr-x 2 user1user1 &amp;nbsp; &amp;nbsp;4096 2009-12-04 09:41 Fusexmp
&lt;br&gt;&amp;gt; -rw-r--r-- 1 &amp;nbsp; user1 user1 &amp;nbsp; &amp;nbsp;9646 2009-12-07 11:03 fusexmp.c
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Nothing is root.
&lt;br&gt;&amp;gt; And after starting of fuse, &amp;nbsp;the mountpoint 'Fusexmp' has root rights:
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; user1@UbuntuVM:~/workspace/fuse/fusetest$ ./fusexmp Fusexmp/
&lt;br&gt;&amp;gt; user1@UbuntuVM:~/workspace/fuse/fusetest$ ls -l
&lt;br&gt;&amp;gt; insgesamt 1752
&lt;br&gt;&amp;gt; -rwxr-xr-x &amp;nbsp;1 &amp;nbsp; user1 user1 &amp;nbsp; 15565 2009-12-04 10:19 fusexmp
&lt;br&gt;&amp;gt; drwxr-xr-x 21 root &amp;nbsp; &amp;nbsp;root &amp;nbsp; &amp;nbsp; &amp;nbsp; 4096 2009-10-20 14:22 Fusexmp
&lt;br&gt;&amp;gt; -rw-r--r-- &amp;nbsp; &amp;nbsp;1 &amp;nbsp; user1 user1 &amp;nbsp; &amp;nbsp;9646 2009-12-07 11:03 fusexmp.c
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Strange .... &amp;nbsp;. &amp;nbsp; ?
&lt;/div&gt;&lt;br&gt;Which uid and gid does the getattr() function of your file system return
&lt;br&gt;for '/'?
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;-Nikolaus
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;&amp;nbsp;»Time flies like an arrow, fruit flies like a Banana.«
&lt;br&gt;&lt;br&gt;&amp;nbsp; PGP fingerprint: 5B93 61F8 4EA2 E279 ABF6 &amp;nbsp;02CF A9AD B7F8 AE4E 425C
&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Return on Information:
&lt;br&gt;Google Enterprise Search pays you back
&lt;br&gt;Get the facts.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/google-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/google-dev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;fuse-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26711760&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;fuse-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/fuse-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/fuse-devel&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/fuse-example--%27fusexmp.c%27-doesn%27t-work-as-download-path-for-a-browser-tp26626492p26711760.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26710141</id>
	<title>call of fuse_main()  in a application</title>
	<published>2009-12-09T05:25:26Z</published>
	<updated>2009-12-09T05:25:26Z</updated>
	<author>
		<name>Mylius WTW</name>
	</author>
	<content type="html">Hallo,
&lt;br&gt;&lt;br&gt;I want to call the function in a application where 
&lt;br&gt;a lot of other threads are also running. If I call the
&lt;br&gt;fuse_main function with static parameters like:
&lt;br&gt;&lt;br&gt;func_xyz()
&lt;br&gt;{
&lt;br&gt;&amp;nbsp; &amp;nbsp; ... &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; int argc = 2;
&lt;br&gt;&amp;nbsp; &amp;nbsp; char *argv[] =
&lt;br&gt;&amp;nbsp; &amp;nbsp; { 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;quot;./fs_net&amp;quot;,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;quot;mountdir&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; };
&lt;br&gt;&amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp;fuse_main(argc, argv, &amp;strFuseFuncSet, NULL);
&lt;br&gt;&amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp;...
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;If I start my whole application 'fs_net' , where fuse is only a small part inside, 
&lt;br&gt;then my application has stopped after the call of &amp;nbsp;fuse_main(). That
&lt;br&gt;is the first think what is wrong. 
&lt;br&gt;&lt;br&gt;If I start the application afterwards again, then I got the information:
&lt;br&gt;'mount: from mtab, &amp;nbsp;mountdir is already mounted ...'
&lt;br&gt;(german: mount: Laut mtab ist xxx schon auf /root/workspace/fs_net/mountdir eingehängt)
&lt;br&gt;and the application has not stopped, is running continuing.
&lt;br&gt;&lt;br&gt;The mountpoint 'mountdir' is not to see on the desktop, where he otherwise appears.
&lt;br&gt;But the folder is mounted:
&lt;br&gt;user1@UbuntuVM:~$ cat &amp;nbsp;/proc/mounts | grep fs_net
&lt;br&gt;fs_net /root/workspace/fs_net/mountdir fuse.fs_net rw,nosuid,nodev,user_id=0,group_id=0 0 0
&lt;br&gt;&lt;br&gt;How can I correct call the fuse_main() function inside a other application?
&lt;br&gt;And is the first parameter in argv (argv[0]) important, or it is only a string where
&lt;br&gt;the mountpoint in mtab is dedicted?
&lt;br&gt;&lt;br&gt;Maik
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;______________________________________________________
&lt;br&gt;GRATIS für alle WEB.DE-Nutzer: Die maxdome Movie-FLAT!
&lt;br&gt;Jetzt freischalten unter &lt;a href=&quot;http://movieflat.web.de&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://movieflat.web.de&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Return on Information:
&lt;br&gt;Google Enterprise Search pays you back
&lt;br&gt;Get the facts.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/google-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/google-dev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;fuse-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26710141&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;fuse-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/fuse-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/fuse-devel&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/call-of-fuse_main%28%29--in-a-application-tp26710141p26710141.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26706133</id>
	<title>Re: fuse example 'fusexmp.c' doesn't work as download path for a browser</title>
	<published>2009-12-08T23:23:00Z</published>
	<updated>2009-12-08T23:23:00Z</updated>
	<author>
		<name>Mylius WTW</name>
	</author>
	<content type="html">That should actually not the reason, because I start fuse
&lt;br&gt;as (e.g) user1.
&lt;br&gt;&lt;br&gt;'Fusexmp' is my fuse mountpoint. Before I start fuse
&lt;br&gt;is that the 'ls -l' &amp;nbsp;print of my fuse folder.
&lt;br&gt;&lt;br&gt;user1@UbuntuVM:~/workspace/fuse/fusetest$ ls -l
&lt;br&gt;insgesamt 1752
&lt;br&gt;-rwxr-xr-x 1 &amp;nbsp;user1 user1 &amp;nbsp; 15565 2009-12-04 10:19 fusexmp
&lt;br&gt;drwxr-xr-x 2 user1user1 &amp;nbsp; &amp;nbsp;4096 2009-12-04 09:41 Fusexmp
&lt;br&gt;-rw-r--r-- 1 &amp;nbsp; user1 user1 &amp;nbsp; &amp;nbsp;9646 2009-12-07 11:03 fusexmp.c
&lt;br&gt;&lt;br&gt;Nothing is root.
&lt;br&gt;And after starting of fuse, &amp;nbsp;the mountpoint 'Fusexmp' has root rights:
&lt;br&gt;&amp;nbsp;
&lt;br&gt;user1@UbuntuVM:~/workspace/fuse/fusetest$ ./fusexmp Fusexmp/
&lt;br&gt;user1@UbuntuVM:~/workspace/fuse/fusetest$ ls -l
&lt;br&gt;insgesamt 1752
&lt;br&gt;-rwxr-xr-x &amp;nbsp;1 &amp;nbsp; user1 user1 &amp;nbsp; 15565 2009-12-04 10:19 fusexmp
&lt;br&gt;drwxr-xr-x 21 root &amp;nbsp; &amp;nbsp;root &amp;nbsp; &amp;nbsp; &amp;nbsp; 4096 2009-10-20 14:22 Fusexmp
&lt;br&gt;-rw-r--r-- &amp;nbsp; &amp;nbsp;1 &amp;nbsp; user1 user1 &amp;nbsp; &amp;nbsp;9646 2009-12-07 11:03 fusexmp.c
&lt;br&gt;&lt;br&gt;And after the umount: ' fusermount -u Fusexmp/' has the mountdir 
&lt;br&gt;'Fusexmp' user rigths again:
&lt;br&gt;&lt;br&gt;user1@UbuntuVM:~/workspace/fuse/fusetest$ fusermount -u Fusexmp/
&lt;br&gt;user1@UbuntuVM:~/workspace/fuse/fusetest$ ls -l
&lt;br&gt;insgesamt 1752
&lt;br&gt;-rwxr-xr-x &amp;nbsp;1 user1 user1 &amp;nbsp; 15565 2009-12-04 10:19 fusexmp
&lt;br&gt;drwxr-xr-x 2 user1 user1 &amp;nbsp; &amp;nbsp;4096 2009-12-04 09:41 Fusexmp
&lt;br&gt;-rw-r--r-- &amp;nbsp; &amp;nbsp;1 user1 user1 &amp;nbsp; &amp;nbsp;9646 2009-12-07 11:03 fusexmp.c
&lt;br&gt;&lt;br&gt;&lt;br&gt;Strange .... &amp;nbsp;. &amp;nbsp; ?
&lt;br&gt;&lt;br&gt;Maik
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;gt; -----Ursprüngliche Nachricht-----
&lt;br&gt;&amp;gt; Von: &amp;quot;Nikolaus Rath&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26706133&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Nikolaus@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; Gesendet: 08.12.09 18:38:53
&lt;br&gt;&amp;gt; An: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26706133&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;fuse-devel@...&lt;/a&gt;
&lt;br&gt;&amp;gt; Betreff: Re: [fuse-devel] fuse example 'fusexmp.c' doesn't work as download path for a browser
&lt;br&gt;&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; My guess is that you are starting fuse as root without --allow_other and
&lt;br&gt;&amp;gt; then try to access the mountpoint as a normal user. 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Mylius WTW &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26706133&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Mylius_M@...&lt;/a&gt;&amp;gt; writes:
&lt;br&gt;&amp;gt; &amp;gt; Hi Nikolaus,
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; that what you have written could be the reason.
&lt;br&gt;&amp;gt; &amp;gt; I have tried to copy a file on the command line from outside 
&lt;br&gt;&amp;gt; &amp;gt; inside the mountpoint and it wasn't possible. Before I have 
&lt;br&gt;&amp;gt; &amp;gt; started the fuse program &amp;nbsp; belongs the dir (mountpoint afterwards)
&lt;br&gt;&amp;gt; &amp;gt; the userX. But if I launch the fuse program with the mountpoint 
&lt;br&gt;&amp;gt; &amp;gt; belongs the mountdir 'root' and not more userX. Therfore I have as 
&lt;br&gt;&amp;gt; &amp;gt; userX no permission more to write the file inside. 
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; I must now found out what is the reason .... &amp;nbsp; .
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Maik
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; -----Ursprüngliche Nachricht-----
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Von: &amp;quot;Nikolaus Rath&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26706133&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Nikolaus@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Gesendet: 07.12.09 16:43:08
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; An: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26706133&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;fuse-devel@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Betreff: Re: [fuse-devel] fuse example 'fusexmp.c' doesn't work as download path for a browser
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Mylius WTW &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26706133&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Mylius_M@...&lt;/a&gt;&amp;gt; writes:
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; Hi,
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; I have taken follow fuse example: &amp;nbsp;'fusexmp.c'
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; &lt;a href=&quot;http://fuse.cvs.sourceforge.net/viewvc/*checkout*/fuse/fuse/example/fusexmp.c?revision=1.40&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://fuse.cvs.sourceforge.net/viewvc/*checkout*/fuse/fuse/example/fusexmp.c?revision=1.40&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; Then I have taken the fuse mountpoint als path for the browser to download a file.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; Then if I download a file, the download windows starts but no download is happend.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; Follow functions are called if I try a download:
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; call: xmp_getattr
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; call: xmp_mknod
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; call: xmp_access
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; call: xmp_getattr
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; call: xmp_mknod
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; And I get e.g. in function &amp;nbsp; 'xmp_getattr()'
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; with call of 'lstat()' the error return value of -1 back:
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; the 'path' containts: &amp;nbsp;'/download_file.mp3'
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;gt; Should the example &amp;nbsp;'fusexmp.c' work correct?
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Can you copy the problematic file inside the mount point with cp on the
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; command line? Can you copy the original file outside the mountpoint
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; (fusexmp.c just mirrors an existing directory)?
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Best,
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;-Nikolaus
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; -- 
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;nbsp;»Time flies like an arrow, fruit flies like a Banana.«
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;nbsp; PGP fingerprint: 5B93 61F8 4EA2 E279 ABF6 &amp;nbsp;02CF A9AD B7F8 AE4E 425C
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; ------------------------------------------------------------------------------
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; a free event focused on virtualization and cloud computing. 
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; fuse-devel mailing list
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26706133&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;fuse-devel@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/fuse-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/fuse-devel&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; ______________________________________________________
&lt;br&gt;&amp;gt; &amp;gt; GRATIS für alle WEB.DE-Nutzer: Die maxdome Movie-FLAT!
&lt;br&gt;&amp;gt; &amp;gt; Jetzt freischalten unter &lt;a href=&quot;http://movieflat.web.de&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://movieflat.web.de&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; ------------------------------------------------------------------------------
&lt;br&gt;&amp;gt; &amp;gt; Return on Information:
&lt;br&gt;&amp;gt; &amp;gt; Google Enterprise Search pays you back
&lt;br&gt;&amp;gt; &amp;gt; Get the facts.
&lt;br&gt;&amp;gt; &amp;gt; &lt;a href=&quot;http://p.sf.net/sfu/google-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/google-dev2dev&lt;/a&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;-Nikolaus
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; -- 
&lt;br&gt;&amp;gt; &amp;nbsp;»Time flies like an arrow, fruit flies like a Banana.«
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; PGP fingerprint: 5B93 61F8 4EA2 E279 ABF6 &amp;nbsp;02CF A9AD B7F8 AE4E 425C
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ------------------------------------------------------------------------------
&lt;br&gt;&amp;gt; Return on Information:
&lt;br&gt;&amp;gt; Google Enterprise Search pays you back
&lt;br&gt;&amp;gt; Get the facts.
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://p.sf.net/sfu/google-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/google-dev2dev&lt;/a&gt;&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; fuse-devel mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26706133&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;fuse-devel@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/fuse-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/fuse-devel&lt;/a&gt;&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;&lt;br&gt;___________________________________________________________
&lt;br&gt;Preisknaller: WEB.DE DSL Flatrate für nur 16,99 Euro/mtl.! 
&lt;br&gt;&lt;a href=&quot;http://produkte.web.de/go/02/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://produkte.web.de/go/02/&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Return on Information:
&lt;br&gt;Google Enterprise Search pays you back
&lt;br&gt;Get the facts.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/google-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/google-dev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;fuse-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26706133&amp;i=8&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;fuse-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/fuse-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/fuse-devel&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/fuse-example--%27fusexmp.c%27-doesn%27t-work-as-download-path-for-a-browser-tp26626492p26706133.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26697216</id>
	<title>Re: fuse example 'fusexmp.c' doesn't work as download path for a browser</title>
	<published>2009-12-08T07:24:39Z</published>
	<updated>2009-12-08T07:24:39Z</updated>
	<author>
		<name>Nikolaus Rath</name>
	</author>
	<content type="html">My guess is that you are starting fuse as root without --allow_other and
&lt;br&gt;then try to access the mountpoint as a normal user. 
&lt;br&gt;&lt;br&gt;Mylius WTW &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26697216&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Mylius_M@...&lt;/a&gt;&amp;gt; writes:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi Nikolaus,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; that what you have written could be the reason.
&lt;br&gt;&amp;gt; I have tried to copy a file on the command line from outside 
&lt;br&gt;&amp;gt; inside the mountpoint and it wasn't possible. Before I have 
&lt;br&gt;&amp;gt; started the fuse program &amp;nbsp; belongs the dir (mountpoint afterwards)
&lt;br&gt;&amp;gt; the userX. But if I launch the fuse program with the mountpoint 
&lt;br&gt;&amp;gt; belongs the mountdir 'root' and not more userX. Therfore I have as 
&lt;br&gt;&amp;gt; userX no permission more to write the file inside. 
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I must now found out what is the reason .... &amp;nbsp; .
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Maik
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; -----Ursprüngliche Nachricht-----
&lt;br&gt;&amp;gt;&amp;gt; Von: &amp;quot;Nikolaus Rath&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26697216&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Nikolaus@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Gesendet: 07.12.09 16:43:08
&lt;br&gt;&amp;gt;&amp;gt; An: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26697216&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;fuse-devel@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; Betreff: Re: [fuse-devel] fuse example 'fusexmp.c' doesn't work as download path for a browser
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Mylius WTW &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26697216&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Mylius_M@...&lt;/a&gt;&amp;gt; writes:
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; Hi,
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; I have taken follow fuse example: &amp;nbsp;'fusexmp.c'
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; &lt;a href=&quot;http://fuse.cvs.sourceforge.net/viewvc/*checkout*/fuse/fuse/example/fusexmp.c?revision=1.40&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://fuse.cvs.sourceforge.net/viewvc/*checkout*/fuse/fuse/example/fusexmp.c?revision=1.40&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; Then I have taken the fuse mountpoint als path for the browser to download a file.
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; Then if I download a file, the download windows starts but no download is happend.
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; Follow functions are called if I try a download:
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; call: xmp_getattr
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; call: xmp_mknod
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; call: xmp_access
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; call: xmp_getattr
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; call: xmp_mknod
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; And I get e.g. in function &amp;nbsp; 'xmp_getattr()'
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; with call of 'lstat()' the error return value of -1 back:
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; the 'path' containts: &amp;nbsp;'/download_file.mp3'
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; Should the example &amp;nbsp;'fusexmp.c' work correct?
&lt;br&gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; Can you copy the problematic file inside the mount point with cp on the
&lt;br&gt;&amp;gt;&amp;gt; command line? Can you copy the original file outside the mountpoint
&lt;br&gt;&amp;gt;&amp;gt; (fusexmp.c just mirrors an existing directory)?
&lt;br&gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; Best,
&lt;br&gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;-Nikolaus
&lt;br&gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; -- 
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;»Time flies like an arrow, fruit flies like a Banana.«
&lt;br&gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; PGP fingerprint: 5B93 61F8 4EA2 E279 ABF6 &amp;nbsp;02CF A9AD B7F8 AE4E 425C
&lt;br&gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; ------------------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt; Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;&amp;gt;&amp;gt; a free event focused on virtualization and cloud computing. 
&lt;br&gt;&amp;gt;&amp;gt; Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt;&amp;gt; fuse-devel mailing list
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26697216&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;fuse-devel@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/fuse-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/fuse-devel&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ______________________________________________________
&lt;br&gt;&amp;gt; GRATIS für alle WEB.DE-Nutzer: Die maxdome Movie-FLAT!
&lt;br&gt;&amp;gt; Jetzt freischalten unter &lt;a href=&quot;http://movieflat.web.de&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://movieflat.web.de&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ------------------------------------------------------------------------------
&lt;br&gt;&amp;gt; Return on Information:
&lt;br&gt;&amp;gt; Google Enterprise Search pays you back
&lt;br&gt;&amp;gt; Get the facts.
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://p.sf.net/sfu/google-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/google-dev2dev&lt;/a&gt;&lt;/div&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;-Nikolaus
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;&amp;nbsp;»Time flies like an arrow, fruit flies like a Banana.«
&lt;br&gt;&lt;br&gt;&amp;nbsp; PGP fingerprint: 5B93 61F8 4EA2 E279 ABF6 &amp;nbsp;02CF A9AD B7F8 AE4E 425C
&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Return on Information:
&lt;br&gt;Google Enterprise Search pays you back
&lt;br&gt;Get the facts.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/google-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/google-dev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;fuse-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26697216&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;fuse-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/fuse-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/fuse-devel&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/fuse-example--%27fusexmp.c%27-doesn%27t-work-as-download-path-for-a-browser-tp26626492p26697216.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26691297</id>
	<title>Re: fuse path encodings</title>
	<published>2009-12-08T01:57:46Z</published>
	<updated>2009-12-08T01:57:46Z</updated>
	<author>
		<name>Sven Utcke-2</name>
	</author>
	<content type="html">&amp;gt; A file name for the kernel and FUSE is a sequence of bytes, not a 
&lt;br&gt;&amp;gt; sequence of characters. &amp;nbsp; There are some limitations on the sequence of 
&lt;br&gt;&amp;gt; bytes: it has a maximum length (255),
&lt;br&gt;&lt;br&gt;Is this a kernel limitation? &amp;nbsp;I don't believe it is a limitation in
&lt;br&gt;FUSE --- does this mean I ought to check for names longer than 255
&lt;br&gt;Characters in my implementation, or else something might break in the
&lt;br&gt;kernel?
&lt;br&gt;&lt;br&gt;Sven
&lt;br&gt;-- 
&lt;br&gt;&amp;nbsp; &amp;nbsp; _ &amp;nbsp;___ &amp;nbsp;___ &amp;nbsp;___ 
&lt;br&gt;&amp;nbsp;__| |/ __|| __|/ __| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; The dCache File System
&lt;br&gt;/ _` | (__ | _| \__ \ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;An archive file-system for PB of data
&lt;br&gt;\__,_|\___||_| &amp;nbsp;|___/ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://www.desy.de/~utcke/Data/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.desy.de/~utcke/Data/&lt;/a&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Return on Information:
&lt;br&gt;Google Enterprise Search pays you back
&lt;br&gt;Get the facts.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/google-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/google-dev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;fuse-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26691297&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;fuse-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/fuse-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/fuse-devel&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/fuse-path-encodings-tp26634836p26691297.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26691190</id>
	<title>Re: after launch of fuse are a lot of files and dirs inside the mountpoint</title>
	<published>2009-12-08T01:48:58Z</published>
	<updated>2009-12-08T01:48:58Z</updated>
	<author>
		<name>Mylius WTW</name>
	</author>
	<content type="html">Hi Sven,
&lt;br&gt;&lt;br&gt;that is rigth. That should be the reason. I try now
&lt;br&gt;to solve this problem.
&lt;br&gt;&lt;br&gt;Must I hand over a second mountdir which is empty
&lt;br&gt;the function 'fuse_main'
&lt;br&gt;&lt;br&gt;like
&lt;br&gt;&lt;br&gt;...
&lt;br&gt;fuse_main(argc, argv, strFuncSet, XX);
&lt;br&gt;...
&lt;br&gt;&lt;br&gt;and then launch the program with e.g.:
&lt;br&gt;&lt;br&gt;'./fuse emtydir mountdir'
&lt;br&gt;&lt;br&gt;?
&lt;br&gt;&lt;br&gt;Is such a way possible ?
&lt;br&gt;&lt;br&gt;Maik 
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;gt; -----Ursprüngliche Nachricht-----
&lt;br&gt;&amp;gt; Von: &amp;quot;Sven Utcke&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26691190&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;utcke@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; Gesendet: 04.12.09 16:58:38
&lt;br&gt;&amp;gt; An: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26691190&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;fuse-devel@...&lt;/a&gt;
&lt;br&gt;&amp;gt; Betreff: Re: [fuse-devel] after launch of fuse are a lot of files and dirs inside the mountpoint
&lt;br&gt;&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; &amp;gt; That is right,
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; in function 'xmp_readdir ' comes mirrored the root dir. 
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; The handed over 'path' string contains the root-dir '/'.
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; But what is the reason that the root-path '/' is handed over 
&lt;br&gt;&amp;gt; &amp;gt; to fill afterwards with the &amp;nbsp;filler method the mountpoint ?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; You get &amp;quot;&amp;quot;+path, so if your input is &amp;quot;/&amp;quot; that's what you get...
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; How can I get a empty mountpoint after launch of the fuse
&lt;br&gt;&amp;gt; &amp;gt; filesystem?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Rewrite all functions to use a prefix of your liking.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Sven
&lt;br&gt;&amp;gt; -- 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; _ &amp;nbsp;___ &amp;nbsp;___ &amp;nbsp;___ 
&lt;br&gt;&amp;gt; &amp;nbsp;__| |/ __|| __|/ __| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; The dCache File System
&lt;br&gt;&amp;gt; / _` | (__ | _| \__ \ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;An archive file-system for PB of data
&lt;br&gt;&amp;gt; \__,_|\___||_| &amp;nbsp;|___/ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://www.desy.de/~utcke/Data/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.desy.de/~utcke/Data/&lt;/a&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ------------------------------------------------------------------------------
&lt;br&gt;&amp;gt; Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;&amp;gt; a free event focused on virtualization and cloud computing. 
&lt;br&gt;&amp;gt; Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; fuse-devel mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26691190&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;fuse-devel@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/fuse-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/fuse-devel&lt;/a&gt;&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;&lt;br&gt;___________________________________________________________
&lt;br&gt;Preisknaller: WEB.DE DSL Flatrate für nur 16,99 Euro/mtl.! 
&lt;br&gt;&lt;a href=&quot;http://produkte.web.de/go/02/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://produkte.web.de/go/02/&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Return on Information:
&lt;br&gt;Google Enterprise Search pays you back
&lt;br&gt;Get the facts.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/google-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/google-dev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;fuse-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26691190&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;fuse-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/fuse-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/fuse-devel&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/after-launch-of-fuse-are-a-lot-of-files-and-dirs-inside-the-mountpoint-tp26627936p26691190.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26690919</id>
	<title>Re: fuse example 'fusexmp.c' doesn't work as download path for a browser</title>
	<published>2009-12-08T01:21:28Z</published>
	<updated>2009-12-08T01:21:28Z</updated>
	<author>
		<name>Mylius WTW</name>
	</author>
	<content type="html">Hi Nikolaus,
&lt;br&gt;&lt;br&gt;that what you have written could be the reason.
&lt;br&gt;I have tried to copy a file on the command line from outside 
&lt;br&gt;inside the mountpoint and it wasn't possible. Before I have 
&lt;br&gt;started the fuse program &amp;nbsp; belongs the dir (mountpoint afterwards)
&lt;br&gt;the userX. But if I launch the fuse program with the mountpoint 
&lt;br&gt;belongs the mountdir 'root' and not more userX. Therfore I have as 
&lt;br&gt;userX no permission more to write the file inside. 
&lt;br&gt;&lt;br&gt;I must now found out what is the reason .... &amp;nbsp; .
&lt;br&gt;&lt;br&gt;Maik
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;gt; -----Ursprüngliche Nachricht-----
&lt;br&gt;&amp;gt; Von: &amp;quot;Nikolaus Rath&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26690919&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Nikolaus@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; Gesendet: 07.12.09 16:43:08
&lt;br&gt;&amp;gt; An: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26690919&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;fuse-devel@...&lt;/a&gt;
&lt;br&gt;&amp;gt; Betreff: Re: [fuse-devel] fuse example 'fusexmp.c' doesn't work as download path for a browser
&lt;br&gt;&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Mylius WTW &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26690919&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Mylius_M@...&lt;/a&gt;&amp;gt; writes:
&lt;br&gt;&amp;gt; &amp;gt; Hi,
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; I have taken follow fuse example: &amp;nbsp;'fusexmp.c'
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &lt;a href=&quot;http://fuse.cvs.sourceforge.net/viewvc/*checkout*/fuse/fuse/example/fusexmp.c?revision=1.40&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://fuse.cvs.sourceforge.net/viewvc/*checkout*/fuse/fuse/example/fusexmp.c?revision=1.40&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Then I have taken the fuse mountpoint als path for the browser to download a file.
&lt;br&gt;&amp;gt; &amp;gt; Then if I download a file, the download windows starts but no download is happend.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Follow functions are called if I try a download:
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; call: xmp_getattr
&lt;br&gt;&amp;gt; &amp;gt; call: xmp_mknod
&lt;br&gt;&amp;gt; &amp;gt; call: xmp_access
&lt;br&gt;&amp;gt; &amp;gt; call: xmp_getattr
&lt;br&gt;&amp;gt; &amp;gt; call: xmp_mknod
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; And I get e.g. in function &amp;nbsp; 'xmp_getattr()'
&lt;br&gt;&amp;gt; &amp;gt; with call of 'lstat()' the error return value of -1 back:
&lt;br&gt;&amp;gt; &amp;gt; the 'path' containts: &amp;nbsp;'/download_file.mp3'
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Should the example &amp;nbsp;'fusexmp.c' work correct?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Can you copy the problematic file inside the mount point with cp on the
&lt;br&gt;&amp;gt; command line? Can you copy the original file outside the mountpoint
&lt;br&gt;&amp;gt; (fusexmp.c just mirrors an existing directory)?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Best,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;-Nikolaus
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; -- 
&lt;br&gt;&amp;gt; &amp;nbsp;»Time flies like an arrow, fruit flies like a Banana.«
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; PGP fingerprint: 5B93 61F8 4EA2 E279 ABF6 &amp;nbsp;02CF A9AD B7F8 AE4E 425C
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ------------------------------------------------------------------------------
&lt;br&gt;&amp;gt; Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;&amp;gt; a free event focused on virtualization and cloud computing. 
&lt;br&gt;&amp;gt; Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; fuse-devel mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26690919&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;fuse-devel@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/fuse-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/fuse-devel&lt;/a&gt;&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;&lt;br&gt;______________________________________________________
&lt;br&gt;GRATIS für alle WEB.DE-Nutzer: Die maxdome Movie-FLAT!
&lt;br&gt;Jetzt freischalten unter &lt;a href=&quot;http://movieflat.web.de&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://movieflat.web.de&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Return on Information:
&lt;br&gt;Google Enterprise Search pays you back
&lt;br&gt;Get the facts.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/google-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/google-dev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;fuse-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26690919&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;fuse-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/fuse-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/fuse-devel&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/fuse-example--%27fusexmp.c%27-doesn%27t-work-as-download-path-for-a-browser-tp26626492p26690919.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26690791</id>
	<title>Re: fuse path encodings</title>
	<published>2009-12-08T01:09:24Z</published>
	<updated>2009-12-08T01:09:24Z</updated>
	<author>
		<name>John Haxby-3</name>
	</author>
	<content type="html">On 08/12/09 02:37, Nikolaus Rath wrote:
&lt;br&gt;&amp;gt; No, you get all paths as byte sequences. It is up to you if you want to
&lt;br&gt;&amp;gt; interpret them as encoded strings. For FUSE and the kernel they are just
&lt;br&gt;&amp;gt; binary data with the added requirement that they must not contain \0 or
&lt;br&gt;&amp;gt; /.
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&lt;br&gt;Absolutely. &amp;nbsp; This is a point worth repeating.
&lt;br&gt;&lt;br&gt;A file name for the kernel and FUSE is a sequence of bytes, not a 
&lt;br&gt;sequence of characters. &amp;nbsp; There are some limitations on the sequence of 
&lt;br&gt;bytes: it has a maximum length (255), it must not contain \0 and it must 
&lt;br&gt;not contain /. &amp;nbsp;What anyone does with that sequence of bytes is entirely 
&lt;br&gt;up to them: the kernel neither knows nor cares -- you can choose to 
&lt;br&gt;interpret it as UTF-8, SJIS, ISO-8859-15, base64 UTF-16, whatever.
&lt;br&gt;&lt;br&gt;[Many years ago I implemented a help function for an editor by storing 
&lt;br&gt;the help for individual key sequences in files whose name were the key 
&lt;br&gt;sequences: for example, the help for ctrl-C was stored in a file whose 
&lt;br&gt;name was the single character '\003'. &amp;nbsp; I think I had a separate program 
&lt;br&gt;to rename the files into something I could type; it saved a precious few 
&lt;br&gt;bytes on a PDP-11 doing it that way.]
&lt;br&gt;&lt;br&gt;jch
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Return on Information:
&lt;br&gt;Google Enterprise Search pays you back
&lt;br&gt;Get the facts.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/google-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/google-dev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;fuse-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26690791&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;fuse-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/fuse-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/fuse-devel&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/fuse-path-encodings-tp26634836p26690791.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26688052</id>
	<title>Re: fuse path encodings</title>
	<published>2009-12-07T18:37:13Z</published>
	<updated>2009-12-07T18:37:13Z</updated>
	<author>
		<name>Nikolaus Rath</name>
	</author>
	<content type="html">Matt Turner &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26688052&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;matturner@...&lt;/a&gt;&amp;gt; writes:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; 2009/12/4 Goswin von Brederlow &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26688052&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;goswin-v-b@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; John Haxby &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26688052&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;john.haxby@...&lt;/a&gt;&amp;gt; writes:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; On 03/12/09 22:58, Matt Turner wrote:
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; I was wondering about dealing with non-ascii characters in paths. Simply
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; put, in what encoding are paths passed to a libfuse client?
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; Unless something has happened since I last looked (and I don't think it
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; has) the kernel and fuse neither know nor care what the encoding used
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; for a file name is. &amp;nbsp;With two exceptions. &amp;nbsp;The octets 0x2f (/) and 0x00
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; are used to separate pathname components and terminate pathnames
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; respectively. &amp;nbsp; Of course, you would have trouble creating a file called
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; &amp;quot;.&amp;quot; or &amp;quot;..&amp;quot; (because they already exist) and if you had a file system
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; that didn't have those all kinds of things would break in interesting
&lt;br&gt;&amp;gt;&amp;gt; ways.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; What does this mean for strings with 0x2f or 0x00 in them? For example,
&lt;br&gt;&amp;gt; non-accented latin characters (&amp;quot;ascii&amp;quot;), like all the names in a unix
&lt;br&gt;&amp;gt; installation, encoded in utf-16 is half 0x00 bytes. It it safe to pass these
&lt;br&gt;&amp;gt; to the kernel?
&lt;/div&gt;&lt;br&gt;No, you can't pass \0 to the kernel. That's why you usually use UTF-8,
&lt;br&gt;which does not generate any problematic bytes.
&lt;br&gt;&lt;br&gt;&amp;gt; It obviously can't just use strlen() on them. Maybe it checks
&lt;br&gt;&amp;gt; $LC_LANG etc and deals with different encodings?
&lt;br&gt;&lt;br&gt;No, the kernel does not care about the locale at all and does not know
&lt;br&gt;anything about encodings.
&lt;br&gt;&lt;br&gt;&amp;gt; You say fuse neither knows nor cares about the encoding (although surely it
&lt;br&gt;&amp;gt; must if it so much as strdup()s any strings).
&lt;br&gt;&lt;br&gt;This doesn't really have anything to do with encoding. You cannot have a
&lt;br&gt;\0 in unix filenames, no matter how you would interpret it.
&lt;br&gt;&lt;br&gt;&amp;gt; Does this just mean I get all
&lt;br&gt;&amp;gt; paths in the system's encoding (that returned by nl_langinfo(CODESET))? If
&lt;br&gt;&amp;gt; this is guaranteed then coping with it is easy.
&lt;br&gt;&lt;br&gt;No, you get all paths as byte sequences. It is up to you if you want to
&lt;br&gt;interpret them as encoded strings. For FUSE and the kernel they are just
&lt;br&gt;binary data with the added requirement that they must not contain \0 or
&lt;br&gt;/.
&lt;br&gt;&lt;br&gt;&lt;br&gt;Best,
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;-Nikolaus
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;&amp;nbsp;»Time flies like an arrow, fruit flies like a Banana.«
&lt;br&gt;&lt;br&gt;&amp;nbsp; PGP fingerprint: 5B93 61F8 4EA2 E279 ABF6 &amp;nbsp;02CF A9AD B7F8 AE4E 425C
&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Return on Information:
&lt;br&gt;Google Enterprise Search pays you back
&lt;br&gt;Get the facts.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/google-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/google-dev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;fuse-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26688052&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;fuse-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/fuse-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/fuse-devel&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/fuse-path-encodings-tp26634836p26688052.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26688053</id>
	<title>Re: Using my own inodes with FUSE</title>
	<published>2009-12-07T18:31:27Z</published>
	<updated>2009-12-07T18:31:27Z</updated>
	<author>
		<name>Nikolaus Rath</name>
	</author>
	<content type="html">Amruta Gokhale &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26688053&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;amruta.gokhale@...&lt;/a&gt;&amp;gt; writes:
&lt;br&gt;&amp;gt; As I understand it, FUSE uses and assigns its own inode numbers to the files
&lt;br&gt;&amp;gt; and directories.
&lt;br&gt;&amp;gt; And to override this and make FUSE use my inode implementation, I need to
&lt;br&gt;&amp;gt; give &amp;quot;-o use_ino&amp;quot; option.
&lt;br&gt;&lt;br&gt;That is correct.
&lt;br&gt;&lt;br&gt;&amp;gt; Is there something special that I should do for using my own inodes
&lt;br&gt;&amp;gt; implementation?
&lt;br&gt;&amp;gt; Something like, do I need to implement functions in fuse__lowlevel__ops
&lt;br&gt;&amp;gt; structure?
&lt;br&gt;&lt;br&gt;No, nothing like that is necessary.
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; What is not working is my inode implementation.
&lt;br&gt;&amp;gt; bash$mkdir tmp
&lt;br&gt;&amp;gt; bash$./dfs -o use_ino tmp
&lt;br&gt;&amp;gt; bash$ls -li
&lt;br&gt;&amp;gt; ls: cannot access tmp: No such file or directory
&lt;br&gt;&amp;gt; 2613945 d????????? ? ? &amp;nbsp; &amp;nbsp; &amp;nbsp;? &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ? &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;? tmp
&lt;br&gt;&amp;gt; ^^^^^ This was the inode number assigned by linux FS to the &amp;quot;tmp&amp;quot; directory.
&lt;br&gt;&amp;gt; I had assigned inode number &amp;quot;1&amp;quot; to the root directory. And I had other
&lt;br&gt;&amp;gt; information
&lt;br&gt;&amp;gt; stored in my inode. But none of this information is visible here.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Whey I tried debugging, the getattr() function prints the correct
&lt;br&gt;&amp;gt; inode information as I want, if I insert some print statements. I am
&lt;br&gt;&amp;gt; unable to understand why this doesn't work then.
&lt;/div&gt;&lt;br&gt;Since you are not able to understand why it does not work, I am
&lt;br&gt;surprised that you still feel confident to judge if getattr() prints the
&lt;br&gt;correct information.
&lt;br&gt;&lt;br&gt;If you want other people to help you, you really have to give them the
&lt;br&gt;chance to look at the actual code and actual data rather than your
&lt;br&gt;interpretations of them.
&lt;br&gt;&lt;br&gt;So I recommend that you either reduce your problem to a *short* example
&lt;br&gt;file system that we can run and reproduce the problem ourselves (this is
&lt;br&gt;always the best way to get help) or at least tell us *how* you debugged
&lt;br&gt;the problem, *what* print statements you inserted *where*, and *what
&lt;br&gt;exactly* they print when the fs is running.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;gt; Is there an example filesystem source code available, which implements its
&lt;br&gt;&amp;gt; own inodes and uses FUSE?
&lt;br&gt;&lt;br&gt;Not that I know of, at least not a simple example.
&lt;br&gt;&lt;br&gt;&lt;br&gt;Best,
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;-Nikolaus
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;&amp;nbsp;»Time flies like an arrow, fruit flies like a Banana.«
&lt;br&gt;&lt;br&gt;&amp;nbsp; PGP fingerprint: 5B93 61F8 4EA2 E279 ABF6 &amp;nbsp;02CF A9AD B7F8 AE4E 425C
&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Return on Information:
&lt;br&gt;Google Enterprise Search pays you back
&lt;br&gt;Get the facts.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/google-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/google-dev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;fuse-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26688053&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;fuse-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/fuse-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/fuse-devel&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Using-my-own-inodes-with-FUSE-tp26672864p26688053.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26686938</id>
	<title>Re: fuse path encodings</title>
	<published>2009-12-07T16:39:59Z</published>
	<updated>2009-12-07T16:39:59Z</updated>
	<author>
		<name>Matt Turner-4</name>
	</author>
	<content type="html">2009/12/4 Goswin von Brederlow &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26686938&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;goswin-v-b@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; John Haxby &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26686938&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;john.haxby@...&lt;/a&gt;&amp;gt; writes:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; On 03/12/09 22:58, Matt Turner wrote:
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; I was wondering about dealing with non-ascii characters in paths. Simply
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; put, in what encoding are paths passed to a libfuse client?
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Unless something has happened since I last looked (and I don't think it
&lt;br&gt;&amp;gt; &amp;gt; has) the kernel and fuse neither know nor care what the encoding used
&lt;br&gt;&amp;gt; &amp;gt; for a file name is. &amp;nbsp;With two exceptions. &amp;nbsp;The octets 0x2f (/) and 0x00
&lt;br&gt;&amp;gt; &amp;gt; are used to separate pathname components and terminate pathnames
&lt;br&gt;&amp;gt; &amp;gt; respectively. &amp;nbsp; Of course, you would have trouble creating a file called
&lt;br&gt;&amp;gt; &amp;gt; &amp;quot;.&amp;quot; or &amp;quot;..&amp;quot; (because they already exist) and if you had a file system
&lt;br&gt;&amp;gt; &amp;gt; that didn't have those all kinds of things would break in interesting
&lt;br&gt;&amp;gt; ways.
&lt;br&gt;&amp;gt;
&lt;/div&gt;What does this mean for strings with 0x2f or 0x00 in them? For example,
&lt;br&gt;non-accented latin characters (&amp;quot;ascii&amp;quot;), like all the names in a unix
&lt;br&gt;installation, encoded in utf-16 is half 0x00 bytes. It it safe to pass these
&lt;br&gt;to the kernel? It obviously can't just use strlen() on them. Maybe it checks
&lt;br&gt;$LC_LANG etc and deals with different encodings?
&lt;br&gt;&lt;br&gt;You say fuse neither knows nor cares about the encoding (although surely it
&lt;br&gt;must if it so much as strdup()s any strings). Does this just mean I get all
&lt;br&gt;paths in the system's encoding (that returned by nl_langinfo(CODESET))? If
&lt;br&gt;this is guaranteed then coping with it is easy.
&lt;br&gt;&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; So, I can create a file called &amp;quot;\x88\x68&amp;quot;, &amp;quot;\x68\x88&amp;quot;, &amp;quot;\xe8\xa1\xa8&amp;quot; or
&lt;br&gt;&amp;gt; &amp;gt; &amp;quot;\x95\x5c&amp;quot; (representations of U+8868 in UCS-2LE, UTF-16, UTF-8 and
&lt;br&gt;&amp;gt; &amp;gt; SJIS) and how they look depends on the locale that the terminal is using
&lt;br&gt;&amp;gt; &amp;gt; to interpret character representations. &amp;nbsp;The last one is interesting
&lt;br&gt;&amp;gt; &amp;gt; because it ends with 0x5c (\) but the file system doesn't much care
&lt;br&gt;&amp;gt; &amp;gt; about that.
&lt;br&gt;&amp;gt;
&lt;br&gt;Obviously the normal rules apply about not using external strings as
&lt;br&gt;printf() format arguments :) You're quite right that representation is
&lt;br&gt;different from the byte stream. The symbol you get depends on the code point
&lt;br&gt;(again, separate from the encoding) and the type face (most of which don't
&lt;br&gt;cover all code points anyway). My filesystem doesn't care what the names
&lt;br&gt;look like, or what they mean, so has no reason to decode a string to find
&lt;br&gt;the codepoints it represents. I do need strchr() to work though.
&lt;br&gt;&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; It is possible to create a file system that, for example, stores its
&lt;br&gt;&amp;gt; &amp;gt; pathnames as vectors of utf16 strings but you would have to make a
&lt;br&gt;&amp;gt; &amp;gt; decision about how to convert what the is passed into the kernel into
&lt;br&gt;&amp;gt; &amp;gt; UTF-16 -- that would have to be a mount option or something that you
&lt;br&gt;&amp;gt; &amp;gt; derive from somewhere (eg nl_langinfo(CODESET)) &amp;nbsp;but it wouldn't stop
&lt;br&gt;&amp;gt; &amp;gt; someone creating a file called &amp;quot;\x95\x5c&amp;quot; because they happen to want to
&lt;br&gt;&amp;gt; &amp;gt; use SJIS but you were expecting UTF-8.
&lt;br&gt;&amp;gt;
&lt;br&gt;If I /know/ I'm getting utf-16 then I can deal with it. Either handle utf-16
&lt;br&gt;natively, or convert to wchar_t on input with mbsrtowcs(), and then back to
&lt;br&gt;utf-16 on output. I'm not sure how a mount option would help here - strings
&lt;br&gt;will come in in whatever the system's encoding is, making the user specify
&lt;br&gt;that seems redundant. Some filesystems do have an option which tells them
&lt;br&gt;what to use _on disk_, and more importantly what's currently on the disk.
&lt;br&gt;This could be different to both what comes in, and the program's internal
&lt;br&gt;encoding.
&lt;br&gt;&lt;br&gt;As you say, if I find something in an unexpected encoding on disk there's
&lt;br&gt;not much I can do. I'm not sure what would happen if another program ignored
&lt;br&gt;LC_LANG and passed the wrong encoding to the kernel. I guess if it survived
&lt;br&gt;the trip thorough it'd just get delivered to me.
&lt;br&gt;&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I believe FAT has just such a mount option and will translate from the
&lt;br&gt;&amp;gt; actual locale used to the one given as option.
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;The only option I can find for FAT is iocharset. A few FSes have this, it
&lt;br&gt;seems to be which 8-bit *character set* to use when converting from unicode
&lt;br&gt;on-disk to 8bit. I guess this only applies if your system is in an 8bit
&lt;br&gt;locale.
&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Return on Information:
&lt;br&gt;Google Enterprise Search pays you back
&lt;br&gt;Get the facts.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/google-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/google-dev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;fuse-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26686938&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;fuse-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/fuse-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/fuse-devel&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/fuse-path-encodings-tp26634836p26686938.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26685088</id>
	<title>Re: fuse: device not found, try 'modprobe fuse' first</title>
	<published>2009-12-07T14:06:58Z</published>
	<updated>2009-12-07T14:06:58Z</updated>
	<author>
		<name>Stephen Munnings</name>
	</author>
	<content type="html">Michael Muratet wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Dec 7, 2009, at 3:30 PM, Stephen Munnings wrote:
&lt;br&gt;&amp;gt;&amp;gt; Michael Muratet wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; I am trying to create an sshd file system, and I get the error 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;quot;device &amp;nbsp;not found try modprobe fuse first. I did and it does not 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; find fuse. I &amp;nbsp;tried the example in the example directory and it 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; doesn't work either, &amp;nbsp;same error. The code compiled and installed 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; without so much as a &amp;nbsp;warning.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; The kernel appears to be the correct vintage:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; scyld:example root$ uname -a
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Linux scyld.localdomain 2.6.18-128.1.1.el5.530g0000 #1 SMP Tue Mar 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 17 &amp;nbsp;21:49:24 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux
&lt;br&gt;&amp;gt;&amp;gt; There needs to be a /dev/fuse on your system.
&lt;br&gt;&amp;gt; There is. It's dated today and I believe it got there when I built fuse.
&lt;/div&gt;How was it built? &amp;nbsp;What do you see when you do an &amp;quot;ls -l /dev/fuse&amp;quot;?
&lt;br&gt;&amp;gt;&amp;gt; It is possible that the kernel was not compiled with FUSE support - 
&lt;br&gt;&amp;gt;&amp;gt; either as a built-in or as a loadable module.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; If the kernel was compiled with this as a built-in - /dev/fuse should 
&lt;br&gt;&amp;gt;&amp;gt; be there when you boot.
&lt;br&gt;&amp;gt; Do I need to reboot the system to get the installation to be recognized?
&lt;br&gt;Perhaps, I am not sure - especially with your setup. &amp;nbsp;My experience with 
&lt;br&gt;Linux (little as it is) is more with embedded systems.
&lt;br&gt;&amp;gt;&amp;gt; If the kernel was compiled with FUSE support as a loadable module, 
&lt;br&gt;&amp;gt;&amp;gt; then the &amp;quot;modprobe fuse&amp;quot; should install it.
&lt;br&gt;&amp;gt; It's a beowulf cluster and the odds are good the kernel was not 
&lt;br&gt;&amp;gt; compiled with fuse support, but, I thought fuse's claim to fame was 
&lt;br&gt;&amp;gt; that you didn't have to mess with the kernel.
&lt;br&gt;Well, you do need the basic support in the kernel, but once that is in, 
&lt;br&gt;all further FUSE development (in theory) need not touch kernel code at all.
&lt;br&gt;It is made up of 3 parts (as far as I can tell)
&lt;br&gt;1. The kernel support (this needs to be there when you start the 
&lt;br&gt;&amp;quot;application&amp;quot;)
&lt;br&gt;2. The libraries (to handle large amounts of common code and interfacing)
&lt;br&gt;3. The actual application - that is the part you and I normally mess with.
&lt;br&gt;&amp;gt; Thanks
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Mike
&lt;br&gt;I am a newcomer to FUSE myself, so don't hang your hat too heavily on my 
&lt;br&gt;advice.
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;&lt;br&gt;Stephen Munnings
&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Return on Information:
&lt;br&gt;Google Enterprise Search pays you back
&lt;br&gt;Get the facts.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/google-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/google-dev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;fuse-devel mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26685088&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;fuse-devel@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/fuse-devel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/fuse-devel&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/fuse%3A-device-not-found%2C-try-%27modprobe-fuse%27-first-tp26683883p26685088.html" />
</entry>

</feed>
