Re: regex in switch scheduler

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



It should work for complete path. So, you can give options like below and
get the desired effect. it internally uses 'fnmatch' call, and it supports
whatever that call supports. 'man fnmatch' should help you to find more.

Regards,
Amar

On Fri, Apr 4, 2008 at 11:57 PM, Dr Rodney G. McDuff <mcduff@xxxxxxxxxxxxx>
wrote:

> Does the regex using in the switch scheduler only apply to the filename
> of the file or it whole path. For instance suppose I wanted to unify a
> bunch of remote bricks in some AFR seta and a stripe set. like:
>
> volume unify
>  type cluster/unify
>  option scheduler switch
>  option switch.case */fast/*:stripe;*:afr0,afr1
>  option namespace remote-ns
>  subvolumes afr0 afr1
> end-volume
>
> so that working in or below the directory /mnt/glusterfs/.../fast would
> provide high io rate scratch area and working anywhere else will provide
> high availability.
>
> --
> Dr. Rodney G. McDuff                 |Ex ignorantia ad sapientiam
> Manager, Strategic Technologies Group|    Ex luce ad tenebras
> Information Technology Services      |
> The University of Queensland         |
> EMAIL: mcduff@xxxxxxxxxxxxx          |
> TELEPHONE: +61 7 3365 8220           |
>
>
>
> _______________________________________________
> Gluster-devel mailing list
> Gluster-devel@xxxxxxxxxx
> http://lists.nongnu.org/mailman/listinfo/gluster-devel
>



-- 
Amar Tumballi
Gluster/GlusterFS Hacker
[bulde on #gluster/irc.gnu.org]
http://www.zresearch.com - Commoditizing Supercomputing and Superstorage!


[Index of Archives]     [Gluster Users]     [Ceph Users]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux