[Gluster-devel] max size limit on posix xlator PROOF of CONCEPT	patch
    Angel 
    clist at uah.es
       
    Wed Jan 16 18:42:55 UTC 2008
    
    
  
Hi, all
This is my first proof of concept of limiting filsystem size on posix xlator. 
This far easy that implementing interception on filter module by now :-P
test setup local posix xlator mounted on /home/sinosuke/mnt
mounted directory is void.
cmd line is: 
	glusterfs -N -L WARNING -l /dev/stdout -n trace-volume -f /etc/glusterfs/client_posix.vol /home/sinosuke/mnt
RESULTS
Normal posix xlator (as 1.3.8tla363)
df -h
S.ficheros          Size Used  Avail Uso% Montado en
/dev/sda2             9,9G  4,6G  4,9G  49% /
udev                  502M   88K  502M   1% /dev
/dev/sda4              50G   21G   30G  42% /home
glusterfs             50G   21G   30G  42%  /home/sinosuke/mnt 
proof of concept posix xlator mountes /home/sinosuke/mnt with option "max-size 1GB"
sinosuke at sushiba:~/mnt> sinosuke at sushiba:~> df -h
S.ficheros          Size Used  Avail Uso% Montado en
/dev/sda2             9,9G  4,6G  4,9G  49% /
udev                  502M   88K  502M   1% /dev
/dev/sda4              50G   21G   30G  42% /home
glusterfs             1,0G  -29G   30G   -  /home/sinosuke/mnt
Other values ( used and vailable ) get insane values as they dont match current filesize reported :-(
Comments welcome
Kind regards, Angel
-- 
------------------------------------------------
Clist UAH
------------------------------------------------
-------------- next part --------------
##############################################
volume posix-brick0
  type storage/posix                   # POSIX FS translator
  option directory /home/export        # Export this directory
  option max-size 1GB 
end-volume
   
volume trace-volume
  type debug/trace
  subvolumes posix-brick0
  option debug on
end-volume
    
    
More information about the Gluster-devel
mailing list