>From: Richard Elling >Sent: Monday, December 20, 2010 8:14 PM >Subject: Re: [zfs-discuss] a single nfs file system shared out twice with different >permissions > >On Dec 20, 2010, at 11:26 AM, "Geoff Nordli" <geo...@gnaa.net> wrote: > >>> From: Edward Ned Harvey >>> Sent: Monday, December 20, 2010 9:25 AM >>> Subject: RE: [zfs-discuss] a single nfs file system shared out twice >>> with >> different >>> permissions >>> >>>> From: Richard Elling >>>> >>>>> zfs create tank/snapshots >>>>> zfs set sharenfs=on tank/snapshots >>>> >>>> "on" by default sets the NFS share parameters to: "rw" >>>> You can set specific NFS share parameters by using a string that >>>> contains the parameters. For example, >>>> >>>> zfs set sharenfs=rw=192.168.12.13,ro=192.168.12.14 my/file/system >>>> >>>> sets readonly access for host 192.168.12.14 and read/write access >>>> for 192.168.12.13. >>> >>> Yeah, but for some reason, the OP didn't want to make it readonly for >> different >>> clients ... He wanted a single client to have it mounted twice on two >> different >>> directories, one with readonly, and the other with read-write. > >Is someone suggesting my solution won't work? Or are they just not up to the >challenge? :-) >
It won't work :) The challenge is exporting two shares from the same folder. Linux has a "bind" command which will make this work, but from what I can see there isn't an equivalent on OpenSolaris. This isn't a big deal though; I can make it work using CIFS. It isn't something that has to be NFS, but I thought I would ask to see if there was a simple solution I was missing. >>> I guess he has some application he can imprison into a specific >>> read-only subdirectory, while some other application should be able >>> to read/write or something like that, using the same username, on the same >machine. >> >> It is the same application, but for some functions it needs to use >> read-only access or it will modify the files when I don't want it to. > >Sounds like a simple dtrace script should do the trick, too. Unfortunately, there isn't anything I can do about the application, and it really isn't a big deal. There is a pretty straight forward workaround. Have a great day! Geoff _______________________________________________ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss