[zfs-discuss] zfs directory inheritance question/issue/problem ?

2011-06-22 Thread Ed Fang
Need a little help. I set up my zfs storage last year and everything has been working great. The initial setup was as follows tank/documents (not shared explicitly) tank/documents/Jan- shared as Jan tank/documents/Feb - shared as Feb tank/documents/March - shared as March Anyhow, I now

Re: [zfs-discuss] zfs directory inheritance question/issue/problem ?

2011-06-22 Thread Cindy Swearingen
Hi Ed, This is current Solaris SMB sharing behavior. CR 6582165 is filed to provide this feature. You will need to reshare your 3 descendent file systems. NFS sharing does this automatically. Thanks, Cindy On 06/22/11 09:46, Ed Fang wrote: Need a little help. I set up my zfs storage last

Re: [zfs-discuss] zfs directory inheritance question/issue/problem ?

2011-06-22 Thread Ed Fang
Cindy, Thanks for the response. You are saying that by re-sharing the 3 descendant systems, then the parent will pick up the descendant shares ? Could you tell me how best to re-share the 3 descendant systems ? Do you mean I should just zfs set sharesmb=off tank/documents/Jan zfs set

Re: [zfs-discuss] zfs directory symlink owner

2010-05-08 Thread Michelle Knight
One will be relative (../a/foo) and the other absolute (/mirror/audio-Cd-Tracks/a/foo). Makes sense. I hadn't actually noticed this. It is not only sharing to Linux machines but also using SFTP as well from outside, so I need things to be pretty much multi-functional and flexible. I don't

[zfs-discuss] zfs directory symlink owner

2010-05-03 Thread Michelle Knight
System = SunOS Node = jaguar Release = 5.11 KernelID = snv_133 Machine = i86pc BusType = unknown Serial = unknown Users = unknown OEM# = 0 Origin# = 1 NumCPU = 1 Hi Folks, I seem to have a problem changing the owner of a symlinked directory. As root... mkdir a chown admin:audiogroup a ln -s a

Re: [zfs-discuss] zfs directory symlink owner

2010-05-03 Thread Onno Molenkamp
Michelle Knight schreef op 03-05-10 10:23: I seem to have a problem changing the owner of a symlinked directory. As root... mkdir a chown admin:audiogroup a ln -s a b Directory b shows up owned by root, but I can't change it from this. I can't change the mod permissions either.

Re: [zfs-discuss] zfs directory symlink owner

2010-05-03 Thread Michelle Knight
Great stuff- Many thanks! -- This message posted from opensolaris.org ___ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Re: [zfs-discuss] zfs directory symlink owner

2010-05-03 Thread Michelle Knight
Urk - my only problem now is that they don't seem to be showing in the published zfs smb share. -- This message posted from opensolaris.org ___ zfs-discuss mailing list zfs-discuss@opensolaris.org

Re: [zfs-discuss] zfs directory symlink owner

2010-05-03 Thread Michelle Knight
Got it - I used cp -L -R to symlnk copy the whole structure instead. Messy, but it does the job. Thanks for all the advice! Much appreciated. -- This message posted from opensolaris.org ___ zfs-discuss mailing list zfs-discuss@opensolaris.org

Re: [zfs-discuss] zfs directory symlink owner

2010-05-03 Thread Michelle Knight
Well, This is the overall issue. I have a music collection. The top level folders contain a letter for each artist and each letter then contains a separate folder for each artist. Nice and easy to organise and navigate. A - ACDC - Alanis Morisett B - BeeGees However ... I wanted to create

Re: [zfs-discuss] zfs directory symlink owner

2010-05-03 Thread Michelle Knight
... and now I've discovered that cp -L doesn't create symlinks. Back to the drawing board. -- This message posted from opensolaris.org ___ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Re: [zfs-discuss] zfs directory symlink owner

2010-05-03 Thread Onno Molenkamp
Michelle Knight schreef op 03-05-10 11:41: What I've been doing is creating links in the entirelist folder, which contain links to the sub-folders in each of the letters. very quick, very simple. However, despite having access to all the folders and files, they don't show up in the ZFS SMB

Re: [zfs-discuss] zfs directory symlink owner

2010-05-03 Thread Martijn de Munnik
On 05/ 3/10 12:44 PM, Michelle Knight wrote: ... and now I've discovered that cp -L doesn't create symlinks. Back to the drawing board. You need to do it the other way round. Create a directory with all your artists and then create symlinks for A, B, C etc so: everything/ACDC

Re: [zfs-discuss] zfs directory symlink owner

2010-05-03 Thread Michelle Knight
Beautiful! It worked. I can't work out why the symlinks failed to show up in the share when I did it, but this way they are showing up fine. Thank you very much!!! -- This message posted from opensolaris.org ___ zfs-discuss mailing list

Re: [zfs-discuss] zfs directory symlink owner

2010-05-03 Thread Michelle Knight
Hmmm ... no, it didn't. I think it might be the sheer number of symlinks I've got in the directory. That might be causing problems with the ZFS smb share. -- This message posted from opensolaris.org ___ zfs-discuss mailing list

Re: [zfs-discuss] zfs directory symlink owner

2010-05-03 Thread Michelle Knight
Now ... Why would this work... cd /mirror/audio/Cd-Tracks/0-entirelist ln -s ../a/* . ...but this fail ... ln -s /mirror/audio/Cd-Tracks/a/* /mirror/audio/Cd-Tracks/0-entirelist/. Any ideas? -- This message posted from opensolaris.org ___

Re: [zfs-discuss] zfs directory symlink owner

2010-05-03 Thread Michelle Knight
The long ls command worked, as in it created the links, but they didn't work properly under the ZFS SMB share. They didn't work as in, on a remote Linux box, I could execute ls and see them, but I couldn't change in; permission issues. (despite having the correct ownership) and also on the

Re: [zfs-discuss] zfs directory symlink owner

2010-05-03 Thread Edward Ned Harvey
From: zfs-discuss-boun...@opensolaris.org [mailto:zfs-discuss- boun...@opensolaris.org] On Behalf Of Michelle Knight I seem to have a problem changing the owner of a symlinked directory. As root... mkdir a chown admin:audiogroup a ln -s a b Directory b shows up owned by root, but I

Re: [zfs-discuss] zfs directory symlink owner

2010-05-03 Thread Kyle McDonald
On 5/3/2010 7:41 AM, Michelle Knight wrote: The long ls command worked, as in it created the links, but they didn't work properly under the ZFS SMB share. I'm guessing you meant the 'long ln' command? If you look at what those 2 commadns create you'll notice (in the output of ls -l) that

Re: [zfs-discuss] zfs directory symlink owner

2010-05-03 Thread Edward Ned Harvey
From: zfs-discuss-boun...@opensolaris.org [mailto:zfs-discuss- boun...@opensolaris.org] On Behalf Of Kyle McDonald If you're only sharing them to Linux machines, then NFS would be so much easier to use. You'll still want relative links though. Only if you have infrastructure to sanitize

Re: [zfs-discuss] zfs directory symlink owner

2010-05-03 Thread Kyle McDonald
On 5/3/2010 4:56 PM, Edward Ned Harvey wrote: From: zfs-discuss-boun...@opensolaris.org [mailto:zfs-discuss- boun...@opensolaris.org] On Behalf Of Kyle McDonald If you're only sharing them to Linux machines, then NFS would be so much easier to use. You'll still want relative links though.

[zfs-discuss] ZFS directory and file quota

2009-11-18 Thread Jozef Hamar
Hi all, I can not find any instructions on how to set the file quota (i.e. maximum number of files per filesystem/directory) or directory quota (maximum size that files in particular directory can consume) in ZFS. I understand ZFS has no support for this. Am I right? If I am, are there any

Re: [zfs-discuss] ZFS directory and file quota

2009-11-18 Thread Darren J Moffat
Jozef Hamar wrote: Hi all, I can not find any instructions on how to set the file quota (i.e. maximum number of files per filesystem/directory) or directory quota (maximum size that files in particular directory can consume) in ZFS. That is because it doesn't exist. I understand ZFS has no

Re: [zfs-discuss] ZFS directory and file quota

2009-11-18 Thread Kyle McDonald
Darren J Moffat wrote: Jozef Hamar wrote: Hi all, I can not find any instructions on how to set the file quota (i.e. maximum number of files per filesystem/directory) or directory quota (maximum size that files in particular directory can consume) in ZFS. That is because it doesn't exist.

Re: [zfs-discuss] ZFS directory and file quota

2009-11-18 Thread Jozef Hamar
Hi Darren, thanks for reply. E.g., I have mail quota implemented as per-directory quota. I know this can be solved in another way, but still, I would have to change many things in my system in order to make it work. And this is quite easy implementation of mail quota. Now I'm using UFS and

Re: [zfs-discuss] ZFS directory and file quota

2009-11-18 Thread Darren J Moffat
Jozef Hamar wrote: Hi Darren, thanks for reply. E.g., I have mail quota implemented as per-directory quota. I know this can be solved in another way, but still, I would have to change many things in my system in order to make it work. And this is quite easy implementation of mail quota. Now

Re: [zfs-discuss] ZFS directory and file quota

2009-11-18 Thread Jozef Hamar
Darren J Moffat wrote: Jozef Hamar wrote: Hi Darren, thanks for reply. E.g., I have mail quota implemented as per-directory quota. I know this can be solved in another way, but still, I would have to change many things in my system in order to make it work. And this is quite easy

Re: [zfs-discuss] ZFS directory and file quota

2009-11-18 Thread Darren J Moffat
Jozef Hamar wrote: Darren J Moffat wrote: Jozef Hamar wrote: Hi Darren, thanks for reply. E.g., I have mail quota implemented as per-directory quota. I know this can be solved in another way, but still, I would have to change many things in my system in order to make it work. And this is

Re: [zfs-discuss] ZFS directory and file quota

2009-11-18 Thread Richard Elling
Consider using a modern mail system. The mail system can handle quotas much better than a file system. http://blogs.sun.com/relling/entry/on_var_mail_and_quotas -- richard On Nov 18, 2009, at 6:18 AM, Jozef Hamar wrote: Hi Darren, thanks for reply. E.g., I have mail quota implemented as

Re: [zfs-discuss] ZFS directory and file quota

2009-11-18 Thread Jorgen Lundman
In that case instead of rewriting the part of my code which handles quota creation/updating/checking, I would need to completely rewrite the quota logic. :-( So what do you do just now with UFS ? Is it a separate filesystem for the mail directory ? If so it really shouldn't be that big of a

[zfs-discuss] ZFS Directory

2007-05-31 Thread kanishk
i wanted to know how does ZFS finds an entry of a file from its dirctory object. anylinks to the code will be highly appriciated. thankx regards kanishk ___ zfs-discuss mailing list zfs-discuss@opensolaris.org

Re: [zfs-discuss] ZFS Directory

2007-05-31 Thread Sanjeev Bagewadi
Kanishk, Directories are implemented as ZAP objects. Look at the routines in that order : - zfs_lookup() - zfs_dirlook() - zfs_dirent_lock() - zap_lookup Hope that helps. Regards, Sanjeev. kanishk wrote: i wanted to know how does ZFS finds an entry of a file from its dirctory object.