How to feel the real time feature of XFS from userspace

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

 



Hi all,

I have format block device with XFS as follows.

root@node2:~# mkfs.xfs -f -r rtdev=/dev/sda3 /dev/sda4

meta-data=/dev/sda4              isize=256    agcount=4, agsize=56122440 blks

         =                       sectsz=512   attr=2, projid32bit=0

data     =                       bsize=4096   blocks=224489757, imaxpct=25

         =                       sunit=0      swidth=0 blks

naming   =version 2              bsize=4096   ascii-ci=0

log      =internal log           bsize=4096   blocks=109614, version=2

         =                       sectsz=512   sunit=0 blks, lazy-count=1

realtime =/dev/sda3              extsz=4096   blocks=14865657,
rtextents=14865657


And I also write user-space codes as follows.

root@node2:~/test# cat xfs.c
#include <stdio.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <xfs/xfs.h>
#include <xfs/xfs_fs.h>

int main(int argc, char **argv) {
int fd;
int xfs_ret = 0;

fd = open("./1", O_RDWR);
if (fd < 0) {
fprintf(stderr, "open error!\n");
return -1;
}
xfs_ret = xfsctl("./1", fd, XFS_IOC_FSGETXATTR, NULL);

return 0;
}


Now, I am wondering how to feel the real time feature of XFS from userspace?
Could anyone please give me some suggestions? Thanks in advance.


-- 
Thanks
Weiwei  Jia (Harry Wei)

_______________________________________________
xfs mailing list
xfs@xxxxxxxxxxx
http://oss.sgi.com/mailman/listinfo/xfs




[Index of Archives]     [Linux XFS Devel]     [Linux Filesystem Development]     [Filesystem Testing]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux