Bug 31234 - [Samba 4] xfs quotas will not work on UCS-3.1-1
[Samba 4] xfs quotas will not work on UCS-3.1-1
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: Samba4
UCS 3.1
All All
: P2 normal (vote)
: UCS 3.1-1-errata
Assigned To: Stefan Gohmann
Arvid Requate
:
Depends on: 31210
Blocks:
  Show dependency treegraph
 
Reported: 2013-04-29 22:33 CEST by Stefan Gohmann
Modified: 2013-05-22 16:18 CEST (History)
4 users (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Gohmann univentionstaff 2013-04-29 22:33:48 CEST
The same for Samba 4:

+++ This bug was initially created as a clone of Bug #31210 +++

(In reply to comment #3)
> I've talked to CH and after some more tests I was able to reproduce it. Thanks
> for the clarification.
> 
> I've installed a UCS 3.1-1 amd64 with Samba 4 and various xfs partitions. I've
> enabled the file system quota via the UMC module:
>  https://<server>/univention-management-console/?module=quota
> 
> After that I created a share and linked a quota policy with the share.
> 
> In Windows XP SP3 the file system shows the double side and the reserved file
> system is only a few bytes.
> 
> The same occurred with a Samba 3 Memberserver as member in the S4 domain. I
> think it is also the same with a Samba 3 Memberserver in a S3 domain.
> 
> After reading Bug #29650 carefully I must say the problem is not new. But the
> priority has not been recognized correctly.
> 
> The patch from the samba bugzilla solved the problem for Samba 3. For Samba 4
> the problem is still available but a part of the patch is applied.
> 
> We should adjust and apply the patches for Samba 3 and Samba 4. The patches
> uses xfs/xqm.h from xfslibs-dev and not the old linux/dqblk_xfs.h. The tests
> should be very carefully and combined with the upcoming errata for
> univention-quota: Bug #24357 + Bug #30636.
Comment 1 Stefan Gohmann univentionstaff 2013-05-02 07:49:58 CEST
A build dependency to xfslibs-dev has been added and Samba 4 has been rebuild. 

I've also added a simple test case to ucs-test which tests the quota on ext2, ext3, ext4 and xfs. The test compares the smbcquota and the repquota output. This test does not check if it is still possible to upload files on an exceeded partition. This has to be checked manually.

For the QA: due to Bug #30636 the current univention-quota test package does not work. You should use an old version.
Comment 2 Stefan Gohmann univentionstaff 2013-05-02 07:56:30 CEST
YAML: 2013-05-02-samba4.yaml
Comment 3 Arvid Requate univentionstaff 2013-05-07 19:55:57 CEST
Verified:
 * quota-test of ucs-test -s samba -E dangerous: OK (tested on i386+amd64)
 * samba4-Version matches Advisory
 * Package also built with xfslibs-dev (xfs/xpm.h) for ucs3.1-2:

root@master10:~# apt-cache policy samba4
samba4:
  Installiert: 4.0.3-1.376.201304300818
  Kandidat:    4.0.3-1.377.201305061354
  Versionstabelle:
     4.0.3-1.377.201305061354 0
        500 http://192.168.0.10/build2/ ucs_3.1-0-ucs3.1-2/i386/ Packages
 *** 4.0.3-1.376.201304300818 0
        500 http://192.168.0.10/build2/ ucs_3.1-0-errata3.1-1/i386/ Packages
Comment 4 Moritz Muehlenhoff univentionstaff 2013-05-22 16:18:26 CEST
http://errata.univention.de/ucs/3.1/110.html