lxd/storage/quota/projectquota.go
func Supported(path string) (bool, error) {
	// Get the backing device
	devPath, err := devForPath(path)
	if err != nil {
		return false, err
	}

	// Call quotactl through CGo
	cDevPath := C.CString(devPath)
	defer C.free(unsafe.Pointer(cDevPath))

	return C.quota_supported(cDevPath) == 0, nil
}
func Supported(path string) (bool, error) {
	// Get the backing device
	devPath, err := devForPath(path)
	if err != nil {
		return false, err
	}

	// Call quotactl through CGo
	cDevPath := C.CString(devPath)
	defer C.free(unsafe.Pointer(cDevPath))

	return C.quota_supported(cDevPath) == 0, nil
}
func Supported ( path string ) ( bool , error ) { // Get the backing device devPath , err := devForPath ( path ) if err != nil { return false , err } // Call quotactl through CGo cDevPath := C . CString ( devPath ) defer C . free ( unsafe . Pointer ( cDevPath ) ) return C . quota_supported ( cDevPath ) == 0 , nil }
// Supported check if the given path supports project quotas
Supported check if the given path supports project quotas