[prev in list] [next in list] [prev in thread] [next in thread] 

List:       fuse-devel
Subject:    Re: [fuse-devel] How find the control directory for a mountpoint
From:       Sandeep Joshi <sanjos100 () gmail ! com>
Date:       2013-09-20 12:22:30
Message-ID: CAEfL3KnTCUR=gbPqKOChziMAgtmkZn+quRyRgkO48_Uvpw2CXQ () mail ! gmail ! com
[Download RAW message or body]

thanks guys!   I had traced the source to determine where the number came
from but then got too tired to figure out which "dev_t" was being used.

-Sandeep

On Fri, Sep 20, 2013 at 2:22 PM, Miklos Szeredi <miklos@szeredi.hu> wrote:

> On Fri, Sep 20, 2013 at 11:54:30AM +0400, Maxim Patlasov wrote:
> > On 09/20/2013 11:24 AM, Sandeep Joshi wrote:
> > > The control filesystem contains a directory per fuse mountpoint
> > >
> > > ls -l /sys/fs/fuse/connections
> > >
> > > The number of each directory is set based on sb->s_dev in the kernel
> code
> > > (in /$linuxsrc/fs/fuse/inode.c)
> > >
> > > Is there a userspace API/hack which allows me to determine which
> directory
> > > corresponds to my FUSE mountpoint ?
> >
> > [root@mynode ~]# stat /fuse
> >    File: `/fuse'
> >    Size: 4096          Blocks: 8          IO Block: 4096 directory
> > Device: 11h/17d    Inode: 1           Links: 33
> > =============^
>
>
> And if the filesystem is unresponsive:
>
> mszeredi@tucsk:~> grep -w $(MOUNTPOINT) /proc/self/mountinfo
> 70 40 0:30 / /home/mszeredi/mnt/fuse rw,nosuid,nodev,relatime shared:53
> [...]
> ========^
>
> Thanks,
> Miklos
>
------------------------------------------------------------------------------
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. 
http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk
_______________________________________________
fuse-devel mailing list
fuse-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fuse-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic