gluster 2.0.8(7) make error on solaris: flock

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

 



ok, i find some info about my problem
flock is not working on solaris, replacement is lockf
http://man-wiki.net/index.php/3:lockf
.......... 
      int lockf(int fd, int cmd, off_t len);
..........
i fix glusterfsd.c (it's compiling), but i can't find any info how i can calculate filesize for "len" arg
i.e. lockf - apply,  test or remove a POSIX lock on a _section_ of an open file, and for locking file (not section) we need filesize.
any ideas ?





[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