zfs set only seems to accept an absolute path, which even if you set it to the name of the pool, isn''t quite the same thing as the default. see my other thread about "set mountpoint but don''t mount?".
On Fri, 30 Jan 2009 16:49:15 -0800, Frank Cusack <fcusack at fcusack.com> wrote:>zfs set only seems to accept an absolute path, which even if you set it >to the name of the pool, isn''t quite the same thing as the default. >see my other thread about "set mountpoint but don''t mount?".That property is called "canmount". man zfs /canmount -- ( Kees Nuyt ) c[_]
On January 31, 2009 10:57:11 AM +0100 Kees Nuyt <k.nuyt at zonnet.nl> wrote:> On Fri, 30 Jan 2009 16:49:15 -0800, Frank Cusack > <fcusack at fcusack.com> wrote: > >> zfs set only seems to accept an absolute path, which even if you set it >> to the name of the pool, isn''t quite the same thing as the default. >> see my other thread about "set mountpoint but don''t mount?". > > That property is called "canmount". > man zfs > /canmountthanks for the reply. to clarify, this doesn''t answer the question in this thread at all -- how to reset the mountpoint property to ''default''. (so i am still looking for the answer to that.) it does seem to address how to do ''zfs send -R | zfs recv -d'' with explicit mountpoints though. i didn''t test, but it seems that setting canmount to noauto, replicating, then changing canmount back to on, would do the trick. -frank
To set the mountpoint back to default, use ''zfs inherit mountpoint <dataset>'' -- This message posted from opensolaris.org
On Sat, 31 Jan 2009 09:49:09 -0800, Frank Cusack <fcusack at fcusack.com> wrote:>On January 31, 2009 10:57:11 AM +0100 Kees Nuyt <k.nuyt at zonnet.nl> wrote: >> On Fri, 30 Jan 2009 16:49:15 -0800, Frank Cusack >> <fcusack at fcusack.com> wrote: >> >>> zfs set only seems to accept an absolute path, which even if you set it >>> to the name of the pool, isn''t quite the same thing as the default. >>> see my other thread about "set mountpoint but don''t mount?". >> >> That property is called "canmount". >> man zfs >> /canmount > >thanks for the reply. to clarify, this doesn''t answer the question in >this thread at all -- how to reset the mountpoint property to ''default''.Oops, sorry, I probably read too fast and mixed up threads.>(so i am still looking for the answer to that.)Mark J Musante has the answer ;)>it does seem to address how to do ''zfs send -R | zfs recv -d'' with >explicit mountpoints though. i didn''t test, but it seems that setting >canmount to noauto, replicating, then changing canmount back to on, would >do the trick. > >-frank-- ( Kees Nuyt ) c[_]
On January 31, 2009 10:17:56 AM -0800 Mark J Musante <mark.musante at sun.com> wrote:> To set the mountpoint back to default, use ''zfs inherit mountpoint > <dataset>''oh, duh <smacks head>. i realized that was the case for all but the top level dataset but didn''t intuit that at the top level inherit would work that way. thanks.