greetings, does anyone know, if it is possible to propagate somehow the XFS "directory tree quota" status to SMB workstation client free space report? currently the client sees total free space of share's partition (instead of tree quota free space). when the tree quota limit is reached, the write attempts fail, but free space report shows enough space, so this is confusing. I guess it is not possible to propagate such information but still asking :-). bye steve.
Aleksander Gudalo
2008-Oct-15 13:38 UTC
[Samba] XFS tree quota and samba free space report
Stepan Kadlec wrote:> greetings, > does anyone know, if it is possible to propagate somehow the XFS > "directory tree quota" status to SMB workstation client free space > report? currently the client sees total free space of share's partition > (instead of tree quota free space). when the tree quota limit is > reached, the write attempts fail, but free space report shows enough > space, so this is confusing. I guess it is not possible to propagate > such information but still asking :-). > bye steve. >You can use the "get quota command" and write your own script to get the quota information you need. Aleksander -- ---------------------------------------- Aleksander Gudalo Humboldt-Universitaet zu Berlin ZE Computer- und Medienservice (CMS) Systemsoftware und Kommunikation Rudower Chaussee 26, Raum 2'329 Mail: gudaloal@cms.hu-berlin.de Phone: +49 (030) 2093-70068 Fax: +49 (030) 2093- 2959 Post: Humboldt-Universit?t zu Berlin Unter den Linden 6 10099 Berlin ----------------------------------------
Hi check out the dfree option for the smb.conf file. Essentially it should look like: dfree command = <path to script that gives value> The script will be called from the directory in question so doing something like: cur_path=`pwd` will get the path for you. You can also call it with a %U option as so: dfree command = <path to script that gives value> %U then the calling username will be passed as well (should be the $2 variable but test to make sure). Your script needs to be executable by whatever user samba runs as, usually root, and needs to return only: <size of disk in blocks><space (not sure but tab works too I think)<size free in blocks> Hope that helps. I'm still having difficulties my self getting everything reporting properly, but my system is a bit of an odd ball too, (Solaris 10, SAMFS filesystem), it was working fine for me then we upgraded our samba and it stopped working. Hopefully it goes as straight forward for you as it should have for me :) On Oct 15, 2008, at 2:29 PM, Stepan Kadlec wrote:> greetings, > does anyone know, if it is possible to propagate somehow the XFS > "directory tree quota" status to SMB workstation client free space > report? currently the client sees total free space of share's > partition (instead of tree quota free space). when the tree quota > limit is reached, the write attempts fail, but free space report > shows enough space, so this is confusing. I guess it is not possible > to propagate such information but still asking :-). > bye steve. > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/listinfo/samba