Re: Question on libgfapi python when used within an application server conext..

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

 



Hi Ram,
Can you provide more details on the seg fault? source code, log files,
cores dumps...

One way to check if a given path is a file or a dir is to call stat and
then check st_mode. 

I was planning on adding a helper function similar to python's
os.path.isdir() to libgfapi-python, but a similar function could be
added directly to libgfapi. I'm not sure what the process is for that.
anybody???

Thiago

On Fri, 2014-02-28 at 11:33 +0530, B.K.Raghuram wrote:
> I'm trying to use the libgfapi python bindings to write a django app
> that can traverse a gluster volume. The script seems to work fine when
> run from a command line but seg faults when run from within django.
> Would anyone know why?
> 
> Also, there seems to be no neat way to differentiate between a
> directory and a file when listing a directory or am I missing
> something very obvious?
> 
> Thanks,
> -Ram
> _______________________________________________
> Gluster-users mailing list
> Gluster-users@xxxxxxxxxxx
> http://supercolony.gluster.org/mailman/listinfo/gluster-users


_______________________________________________
Gluster-users mailing list
Gluster-users@xxxxxxxxxxx
http://supercolony.gluster.org/mailman/listinfo/gluster-users




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

  Powered by Linux