~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/fs/ocfs2/filecheck.h

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* SPDX-License-Identifier: GPL-2.0-only */
  2 /*
  3  * filecheck.h
  4  *
  5  * Online file check.
  6  *
  7  * Copyright (C) 2016 SuSE.  All rights reserved.
  8  */
  9 
 10 
 11 #ifndef FILECHECK_H
 12 #define FILECHECK_H
 13 
 14 #include <linux/types.h>
 15 #include <linux/list.h>
 16 
 17 
 18 /* File check errno */
 19 enum {
 20         OCFS2_FILECHECK_ERR_SUCCESS = 0,        /* Success */
 21         OCFS2_FILECHECK_ERR_FAILED = 1000,      /* Other failure */
 22         OCFS2_FILECHECK_ERR_INPROGRESS,         /* In progress */
 23         OCFS2_FILECHECK_ERR_READONLY,           /* Read only */
 24         OCFS2_FILECHECK_ERR_INJBD,              /* Buffer in jbd */
 25         OCFS2_FILECHECK_ERR_INVALIDINO,         /* Invalid ino */
 26         OCFS2_FILECHECK_ERR_BLOCKECC,           /* Block ecc */
 27         OCFS2_FILECHECK_ERR_BLOCKNO,            /* Block number */
 28         OCFS2_FILECHECK_ERR_VALIDFLAG,          /* Inode valid flag */
 29         OCFS2_FILECHECK_ERR_GENERATION,         /* Inode generation */
 30         OCFS2_FILECHECK_ERR_UNSUPPORTED         /* Unsupported */
 31 };
 32 
 33 #define OCFS2_FILECHECK_ERR_START       OCFS2_FILECHECK_ERR_FAILED
 34 #define OCFS2_FILECHECK_ERR_END         OCFS2_FILECHECK_ERR_UNSUPPORTED
 35 
 36 struct ocfs2_filecheck {
 37         struct list_head fc_head;       /* File check entry list head */
 38         spinlock_t fc_lock;
 39         unsigned int fc_max;    /* Maximum number of entry in list */
 40         unsigned int fc_size;   /* Current entry count in list */
 41         unsigned int fc_done;   /* Finished entry count in list */
 42 };
 43 
 44 #define OCFS2_FILECHECK_MAXSIZE         100
 45 #define OCFS2_FILECHECK_MINSIZE         10
 46 
 47 /* File check operation type */
 48 enum {
 49         OCFS2_FILECHECK_TYPE_CHK = 0,   /* Check a file(inode) */
 50         OCFS2_FILECHECK_TYPE_FIX,       /* Fix a file(inode) */
 51         OCFS2_FILECHECK_TYPE_SET = 100  /* Set entry list maximum size */
 52 };
 53 
 54 struct ocfs2_filecheck_sysfs_entry {    /* sysfs entry per partition */
 55         struct kobject fs_kobj;
 56         struct completion fs_kobj_unregister;
 57         struct ocfs2_filecheck *fs_fcheck;
 58 };
 59 
 60 
 61 int ocfs2_filecheck_create_sysfs(struct ocfs2_super *osb);
 62 void ocfs2_filecheck_remove_sysfs(struct ocfs2_super *osb);
 63 
 64 #endif  /* FILECHECK_H */
 65 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php