9p-local.c (faab207f115cf9738f110cb088ab35a4b7aef73a) | 9p-local.c (23da0145cc4be66fdb1033f951dbbf140f457896) |
---|---|
1/* 2 * 9p Posix callback 3 * 4 * Copyright IBM, Corp. 2010 5 * 6 * Authors: 7 * Anthony Liguori <aliguori@us.ibm.com> 8 * --- 1039 unchanged lines hidden (view full) --- 1048 } 1049} 1050 1051static int local_statfs(FsContext *s, V9fsPath *fs_path, struct statfs *stbuf) 1052{ 1053 int fd, ret; 1054 1055 fd = local_open_nofollow(s, fs_path->data, O_RDONLY, 0); | 1/* 2 * 9p Posix callback 3 * 4 * Copyright IBM, Corp. 2010 5 * 6 * Authors: 7 * Anthony Liguori <aliguori@us.ibm.com> 8 * --- 1039 unchanged lines hidden (view full) --- 1048 } 1049} 1050 1051static int local_statfs(FsContext *s, V9fsPath *fs_path, struct statfs *stbuf) 1052{ 1053 int fd, ret; 1054 1055 fd = local_open_nofollow(s, fs_path->data, O_RDONLY, 0); |
1056 if (fd == -1) { 1057 return -1; 1058 } |
|
1056 ret = fstatfs(fd, stbuf); 1057 close_preserve_errno(fd); 1058 return ret; 1059} 1060 1061static ssize_t local_lgetxattr(FsContext *ctx, V9fsPath *fs_path, 1062 const char *name, void *value, size_t size) 1063{ --- 317 unchanged lines hidden --- | 1059 ret = fstatfs(fd, stbuf); 1060 close_preserve_errno(fd); 1061 return ret; 1062} 1063 1064static ssize_t local_lgetxattr(FsContext *ctx, V9fsPath *fs_path, 1065 const char *name, void *value, size_t size) 1066{ --- 317 unchanged lines hidden --- |