]> git.proxmox.com Git - ceph.git/blame - ceph/src/java/java/com/ceph/fs/CephStat.java
bump version to 18.2.4-pve3
[ceph.git] / ceph / src / java / java / com / ceph / fs / CephStat.java
CommitLineData
7c673cae
FG
1/*
2 * Permission is hereby granted, free of charge, to any person obtaining a
3 * copy of this software and associated documentation files (the "Software"),
4 * to deal in the Software without restriction, including without limitation
5 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
6 * and/or sell copies of the Software, and to permit persons to whom the
7 * Software is furnished to do so, subject to the following conditions:
8 *
9 * The above copyright notice and this permission notice shall be included in
10 * all copies or substantial portions of the Software.
11 *
12 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
15 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
16 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
17 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
18 * DEALINGS IN THE SOFTWARE.
19 */
20package com.ceph.fs;
21
22/**
23 * Holds struct stat fields.
24 */
25public class CephStat {
26
27 /* Set from native */
28 private boolean is_file; /* S_ISREG */
29 private boolean is_directory; /* S_ISDIR */
30 private boolean is_symlink; /* S_ISLNK */
31
32 public int mode;
33 public int uid;
34 public int gid;
35 public long size;
36 public long blksize;
37 public long blocks;
38 public long a_time;
39 public long m_time;
40
41 public boolean isFile() {
42 return is_file;
43 }
44
45 public boolean isDir() {
46 return is_directory;
47 }
48
49 public boolean isSymlink() {
50 return is_symlink;
51 }
52
53}