[Bugs] [Bug 1244361] New: Command "cp *" to directory crosses hard-limit quota and copies all requested files

bugzilla at redhat.com bugzilla at redhat.com
Fri Jul 17 23:03:10 UTC 2015


https://bugzilla.redhat.com/show_bug.cgi?id=1244361

            Bug ID: 1244361
           Summary: Command "cp *" to directory crosses hard-limit quota
                    and copies all requested files
           Product: GlusterFS
           Version: 3.6.2
         Component: quota
          Assignee: bugs at gluster.org
          Reporter: vnosov at stonefly.com
                CC: bugs at gluster.org, gluster-bugs at redhat.com



Description of problem: Directory quota is ignored by command "cp *"


Version-Release number of selected component (if applicable): glusterfs 3.6.2


How reproducible: 100% reproducible


Steps to Reproduce:

1. Have quota on /cifs_share/Dir3:

                  Path                   Hard-limit Soft-limit   Used 
Available  Soft-limit exceeded? Hard-limit exceeded?
---------------------------------------------------------------------------------------------------------------------------
/cifs_share/Dir3                          20.0MB       80%      17.0MB   3.0MB 
           Yes                   No



2. Check contents of the /Dir3 
 ls /samba/nas-volume-0001/cifs_share/Dir3/

glusterfs-3.2.7.tar  glusterfs-3.3.0.tar.gz  glusterweb-f88e119.tar.gz



3. Copy 30 files with total size of 165MB to the /Dir3

cp *.log /samba/nas-volume-0001/cifs_share/Dir3/

4. Check quota:

gluster volume quota nas-volume-0001 list
                  Path                   Hard-limit Soft-limit   Used 
Available  Soft-limit exceeded? Hard-limit exceeded?
---------------------------------------------------------------------------------------------------------------------------
/cifs_share/Dir3                          20.0MB       80%     182.7MB  0Bytes 
           Yes                  Yes


5. Check files at the /Dir3

 ls /samba/nas-volume-0001/cifs_share/Dir3/

admin.log       fo_handler.log             ipmi_sel_current.log 
nas_vol_seg_repair-nas-metadata-on-SC-10.10.63.182_nas-metadata.log 
sfcmd_iping.log    sfcm_nas_monitor.log  stonefly.log
dbUpgrade.log   fo_handler_service.log     isns_update.log      
sfapi_handler_9003.log                                               sfcmd.log 
        sffe_err.log          traps.log
do_command.log  glusterfs-3.2.7.tar        lu_stats.log         
sfapi_handler.log                                                   
sfcmd_service.log  sffe_monitor.log      utils.log
ff1000.log      glusterfs-3.3.0.tar.gz     ms_service_.log      
sfapi_handler_service.log                                           
sfcm_handler.log   sfvs.log
ffmirrord.log   glusterweb-f88e119.tar.gz  ms_service.log        sfapi.log     
                                                      sfcm.log          
sfvs_ports.log


6. Files at the source directory:

 ls *.log

admin.log       ffmirrord.log           isns_update.log 
nas_vol_seg_repair-nas-metadata-on-SC-10.10.63.182_nas-metadata.log  sfapi.log 
        sfcm_handler.log      sffe_monitor.log  traps.log
dbUpgrade.log   fo_handler.log          lu_stats.log     sfapi_handler_9003.log
                                              sfcmd_iping.log    sfcm.log      
       sfvs.log          utils.log
do_command.log  fo_handler_service.log  ms_service_.log  sfapi_handler.log     
                                              sfcmd.log         
sfcm_nas_monitor.log  sfvs_ports.log
ff1000.log      ipmi_sel_current.log    ms_service.log  
sfapi_handler_service.log                                           
sfcmd_service.log  sffe_err.log          stonefly.log


Actual results:

Copy was executed as an atomic command and all files were copied in a bulk. 


Expected results:

Copy has to copy files one-by-one until the hard-limit quota is reached.


Additional info:

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.


More information about the Bugs mailing list