MCPcopy Create free account

hub / github.com/cirocosta/xfsvol / functions

Functions82 in github.com/cirocosta/xfsvol

↓ 11 callersFunctionsetupTestFs
setupTestFs takes a filesystem description as a variable and setups the desired structure under a temp directory.
xfs/xfs_test.go:36
↓ 10 callersMethodCreate
Create validates a volume specification and then proceed with creating the volume under the controlled root directory.
manager/manager.go:166
↓ 8 callersMethodSetQuota
SetQuota assigns a unique project id to a directory and then set the quota for that projectId.
xfs/control.go:147
↓ 6 callersMethodCreate
(req *v.CreateRequest)
plugin/driver.go:56
↓ 3 callersMethodDelete
Delete tries to delete a volume by its name. ps.: Deleting a volume that doesn't exist is considered an error.
manager/manager.go:204
↓ 3 callersMethodGet
Get tries to retrieve a volume by its name (not path). For instance, if the root path that the manager controls is `/mnt/xfs/volumes`, then a volume
manager/manager.go:124
↓ 3 callersFunctionisValidName
isValidName verifies whether a given name is considered valid or not based on a constant naming regular expression.
manager/manager.go:236
↓ 2 callersMethodGet
(req *v.GetRequest)
plugin/driver.go:137
↓ 2 callersMethodGetQuota
GetQuota retrieves the quota settings associated with a targetPath that previously had a quota set for it. TODO differentiate between real errors and
xfs/control.go:126
↓ 2 callersMethodList
List lists all the volumes that have been created under a given root path that is controlled by this manager.
manager/manager.go:85
↓ 2 callersFunctionMakeRelativePathsInFlagsAbsolute
( flags, working_directory )
xfs/.ycm_extra_conf.py:32
↓ 1 callersFunctionDirectoryOfThisScript
()
xfs/.ycm_extra_conf.py:28
↓ 1 callersFunctionGeneratePathToProjectIdMap
GeneratePathToProjectIdMap creates a map that maps the projectIds associated with paths directly under a giving root path.
xfs/control.go:189
↓ 1 callersMethodGetBackingFsBlockDev
GetBackingFsBlockDev retrieves the absolute path of the backing block device configured for the current quota control instance.
xfs/control.go:116
↓ 1 callersFunctionGetCompilationInfoForFile
( filename )
xfs/.ycm_extra_conf.py:66
↓ 1 callersFunctionGetProjectId
GetProjectId retrieves the extended attribute projectid associated with a given directory.
xfs/xfs.go:134
↓ 1 callersFunctionGetProjectQuota
GetProjectQuota retrieves the quota settings associated with a project-id controlled by a given block device. The values prefixed with `Used` indicat
xfs/xfs.go:101
↓ 1 callersFunctionIsHeaderFile
( filename )
xfs/.ycm_extra_conf.py:61
↓ 1 callersMethodList
()
plugin/driver.go:104
↓ 1 callersFunctionMakeBackingFsDev
MakeBackingFsDev creates a block device under the directory specified in the `root` argument.
xfs/xfs.go:179
↓ 1 callersFunctionNewDriver
(cfg DriverConfig)
plugin/driver.go:27
↓ 1 callersFunctionSetProjectId
SetProjectId sets the value of the extended attribute projectid associated with a given directory, as well as setting necessary flags (PROJINHERIT).
xfs/xfs.go:157
↓ 1 callersFunctionSetProjectQuota
SetProjectQuota sets quota settings associated with a given projectId controlled by a given block device. The values that are not prefixed with `Used
xfs/xfs.go:40
↓ 1 callersFunctionmakeBigString
makeBigString creates a string filled with a single character that is `size` big.
xfs/xfs_test.go:72
MethodCapabilities
TODO is it global?
plugin/driver.go:290
FunctionCreateFiles
CreateFiles creates a bunch of files under a given base directory specified.
test_utils/utils.go:13
FunctionFlagsForFile
( filename, **kwargs )
xfs/.ycm_extra_conf.py:84
FunctionFromHumanSize
(size string)
manager/pretty_bytes.go:21
FunctionHumanSize
(size uint64)
manager/pretty_bytes.go:34
FunctionIsQuotaEnabled
IsQuotaEnabled checks whether a given filesystem mount indicated by a block device has project quota accounting and enforcement ON.
xfs/xfs.go:72
MethodMount
(req *v.MountRequest)
plugin/driver.go:236
FunctionMustFromHumanSize
(size string)
manager/pretty_bytes.go:9
FunctionNew
New instantiates a new manager that is meant to take care of volume creation, listing, updating and stats retrieval under a given root path.
manager/manager.go:54
FunctionNewControl
NewControl initializes project quota support under a given preconfigured BasePath. It does so by creating a block device right at BasePath and then h
xfs/control.go:69
MethodPath
(req *v.PathRequest)
plugin/driver.go:201
MethodRemove
(req *v.RemoveRequest)
plugin/driver.go:175
FunctionTestControl_createsBackingFsBlockDev
(t *testing.T)
xfs/control_test.go:28
FunctionTestControl_failsToAssignQuotaToInexistentDirectoryWithinTree
(t *testing.T)
xfs/control_test.go:65
FunctionTestControl_flatlyEnforcesDiskQuota
(t *testing.T)
xfs/control_test.go:103
FunctionTestControl_flatlyEnforcesINodeQuota
(t *testing.T)
xfs/control_test.go:139
FunctionTestControl_quotaAssignmentFailsToIfDirectoryOutsideTree
(t *testing.T)
xfs/control_test.go:45
FunctionTestControl_succeedsIfXFSBasedDirectory
(t *testing.T)
xfs/control_test.go:17
FunctionTestControl_succeedsToAssignQuotaToDirectoryWithinTree
(t *testing.T)
xfs/control_test.go:83
FunctionTestCreate_actuallyHasQuotaEnforced
(t *testing.T)
manager/manager_test.go:109
FunctionTestCreate_cantCreateWithEmptySize
(t *testing.T)
manager/manager_test.go:149
FunctionTestCreate_failsIfEmptyPath
(t *testing.T)
manager/manager_test.go:50
FunctionTestCreate_failsWithWeirdCharacters
(t *testing.T)
manager/manager_test.go:64
FunctionTestCreate_succeedsWithNormalPathAndSize
(t *testing.T)
manager/manager_test.go:87
FunctionTestDelete_failsForInexistentVolume
(t *testing.T)
manager/manager_test.go:263
FunctionTestDelete_succeedsForExistentVolume
(t *testing.T)
manager/manager_test.go:234
FunctionTestGetProjectId
(t *testing.T)
xfs/xfs_test.go:82
FunctionTestGetProjectStats
(t *testing.T)
xfs/xfs_test.go:362
FunctionTestGet_doesntErrorIfNotFound
(t *testing.T)
manager/manager_test.go:197
FunctionTestGet_findsDirectory
(t *testing.T)
manager/manager_test.go:212
FunctionTestIsQuotaEnabled
(t *testing.T)
xfs/xfs_test.go:435
FunctionTestIsQuotaEnabled_failsIfBlockDeviceDoesntExist
(t *testing.T)
xfs/xfs_test.go:405
FunctionTestIsQuotaEnabled_notEnabledIfNoProjectQuotaSet
(t *testing.T)
xfs/xfs_test.go:422
FunctionTestIsQuotaEnabled_notEnabledIfNotXfs
(t *testing.T)
xfs/xfs_test.go:410
FunctionTestList_canList0Directorise
(t *testing.T)
manager/manager_test.go:134
FunctionTestList_listsDirectories
(t *testing.T)
manager/manager_test.go:166
FunctionTestMakeBackingFsDev
(t *testing.T)
xfs/xfs_test.go:234
FunctionTestMakeBackingFsDev_succeedsIfAlreadyExists
(t *testing.T)
xfs/xfs_test.go:297
FunctionTestNew_failsWithInexistentRoot
(t *testing.T)
manager/manager_test.go:25
FunctionTestNew_failsWithNonAbsolutePath
(t *testing.T)
manager/manager_test.go:32
FunctionTestNew_failsWithoutRootSpecified
(t *testing.T)
manager/manager_test.go:20
FunctionTestNew_succeedsWithWriteableAbsolutePath
(t *testing.T)
manager/manager_test.go:39
FunctionTestSetProjectId
(t *testing.T)
xfs/xfs_test.go:136
FunctionTestSetProjectId_childrenHaveProjectIdSet
(t *testing.T)
xfs/xfs_test.go:204
FunctionTestSetProjectQuota_failsIfBlockDeviceDoesntExist
(t *testing.T)
xfs/xfs_test.go:312
FunctionTestSetProjectQuota_succeeds
(t *testing.T)
xfs/xfs_test.go:332
MethodUnmount
(req *v.UnmountRequest)
plugin/driver.go:272
FunctionWriteBytes
WriteBytes writes a given number of bytes in the form of 'character' to a given writer.
test_utils/utils.go:36
FunctioncreateAction
(c *cli.Context)
xfsvolctl/commands/create.go:66
FunctionlsAction
(c *cli.Context)
xfsvolctl/commands/ls.go:53
Functionmain
()
plugin/main.go:32
Functionmain
()
xfsvolctl/main.go:15
Functionxfs_create_fs_block_dev
xfs/xfs.c:145
Functionxfs_get_project_id
xfs/xfs.c:84
Functionxfs_get_project_quota
xfs/xfs.c:60
Functionxfs_is_quota_enabled
xfs/xfs.c:3
Functionxfs_set_project_id
xfs/xfs.c:109
Functionxfs_set_project_quota
xfs/xfs.c:31