source: trunk/packages/python-afs/afs/_fs.pyx @ 2707

Last change on this file since 2707 was 2599, checked in by broder, 15 years ago

Import python-afs.

Debathena should eventually be importing PyAFS for
<http://debathena.mit.edu/trac/ticket/395>, so hopefully this is only
temporary.

File size: 263 bytes
RevLine 
[2599]1from afs._util cimport *
2from afs._util import pyafs_error
3
4def whichcell(char* path):
5    """Determine which AFS cell a particular path is in."""
6    cdef char cell[MAXCELLCHARS]
7
8    pioctl_read(path, VIOC_FILE_CELL_NAME, cell, sizeof(cell), 1)
9    return cell
Note: See TracBrowser for help on using the repository browser.