Skip to content

Commit

Permalink
Fix more errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jfantinhardesty committed Sep 11, 2023
1 parent 7068dce commit be289ba
Show file tree
Hide file tree
Showing 12 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/codespell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ jobs:
with:
check_filenames: true
skip: ./.git,./.github/workflows/codespell.yml,.git,*.png,*.jpg,*.svg,*.sum,./vendor,go.sum,./NOTICE
ignore_words_list: filetest,dum,varius,KeyPair,keypair,ro,WRONLY,wronly,AKS
ignore_words_list: filetest,dum,varius,KeyPair,keypair,ro,WRONLY,wronly,AKS,ser

2 changes: 1 addition & 1 deletion cmd/mount.go
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ var mountCmd = &cobra.Command{
log.Crit("Starting Cloudfuse Mount : %s on [%s]", common.CloudfuseVersion, common.GetCurrentDistro())
log.Crit("Logging level set to : %s", logLevel.String())

// If on Linux start with the go deamon
// If on Linux start with the go daemon
// If on Windows, don't use the daemon since it is not supported
// TODO: Enable running as a service on Windows
if runtime.GOOS == "windows" {
Expand Down
2 changes: 1 addition & 1 deletion common/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ func GetCurrentUser() (uint32, uint32, error) {
}

// JoinUnixFilepath uses filepath.join to join a path and ensures that
// path only uses unix path delimeters.
// path only uses unix path delimiters.
func JoinUnixFilepath(elem ...string) string {
return NormalizeObjectName(filepath.Join(elem...))
}
Expand Down
4 changes: 2 additions & 2 deletions component/libfuse/libfuse2_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -816,7 +816,7 @@ func (cf *CgofuseFS) Readlink(path string) (int, string) {
return 0, targetPath
}

// Fsync syncronizes the file.
// Fsync synchronizes the file.
func (cf *CgofuseFS) Fsync(path string, datasync bool, fh uint64) int {
if fh == 0 {
return -fuse.EIO
Expand Down Expand Up @@ -846,7 +846,7 @@ func (cf *CgofuseFS) Fsync(path string, datasync bool, fh uint64) int {
return 0
}

// Fsyncdir syncronizes a directory.
// Fsyncdir synchronizes a directory.
func (cf *CgofuseFS) Fsyncdir(path string, datasync bool, fh uint64) int {
name := trimFusePath(path)
name = common.NormalizeObjectName(name)
Expand Down
2 changes: 1 addition & 1 deletion component/s3storage/s3wrappers.go
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ func (cl *Client) getKey(name string, isSymLink bool) string {
func (cl *Client) getFile(name string) (string, bool) {
isSymLink := false

//todo: wrtie a test the catches the out of bounds issue.
//todo: write a test the catches the out of bounds issue.
if strings.HasSuffix(name, symlinkStr) {
isSymLink = true
name = name[:len(name)-len(symlinkStr)]
Expand Down
2 changes: 1 addition & 1 deletion gui/azure_config_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def populateOptions(self):
self.setCheckboxFromSetting(self.checkBox_streaming_fileCachingLevel,stream['file-caching'])
self.setCheckboxFromSetting(self.checkBox_libfuse_ignoreAppend,libfuse['ignore-open-flags'])

# Spinbox automatically sanitizes intputs for decimal values only, so no need to check for the appropriate data type.
# Spinbox automatically sanitizes inputs for decimal values only, so no need to check for the appropriate data type.
self.spinBox_libfuse_attExp.setValue(libfuse['attribute-expiration-sec'])
self.spinBox_libfuse_entExp.setValue(libfuse['entry-expiration-sec'])
self.spinBox_libfuse_negEntryExp.setValue(libfuse['negative-entry-expiration-sec'])
Expand Down
2 changes: 1 addition & 1 deletion gui/azure_config_common.ui
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
<item>
<widget class="QLabel" name="label_4">
<property name="toolTip">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;The amount of time (seconds) the kernal can cache inode attributes&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;The amount of time (seconds) the kernel can cache inode attributes&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="text">
<string>Attribute expiration (s)</string>
Expand Down
2 changes: 1 addition & 1 deletion gui/s3_config_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def populateOptions(self):
self.setCheckboxFromSetting(self.checkBox_streaming_fileCachingLevel,stream['file-caching'])
self.setCheckboxFromSetting(self.checkBox_libfuse_ignoreAppend,libfuse['ignore-open-flags'])

# Spinbox automatically sanitizes intputs for decimal values only, so no need to check for the appropriate data type.
# Spinbox automatically sanitizes inputs for decimal values only, so no need to check for the appropriate data type.
self.spinBox_libfuse_attExp.setValue(libfuse['attribute-expiration-sec'])
self.spinBox_libfuse_entExp.setValue(libfuse['entry-expiration-sec'])
self.spinBox_libfuse_negEntryExp.setValue(libfuse['negative-entry-expiration-sec'])
Expand Down
2 changes: 1 addition & 1 deletion gui/s3_config_common.ui
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
<item>
<widget class="QLabel" name="label_4">
<property name="toolTip">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;The amount of time (seconds) the kernal can cache inode attributes&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;The amount of time (seconds) the kernel can cache inode attributes&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="text">
<string>Attribute expiration (s)</string>
Expand Down
2 changes: 1 addition & 1 deletion internal/stats_manager/stats_manager_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ func statsPolling() {
}

message := messageBuf.String()
log.Debug("stats_manager::statsPolling : Recieved message to polling pipe %v", message)
log.Debug("stats_manager::statsPolling : Received message to polling pipe %v", message)

// validating poll message
if !strings.Contains(string(message), "Poll at") {
Expand Down
2 changes: 1 addition & 1 deletion internal/winservice/WINDOWS_DOCS.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Commands are sent to WinFsp using named pipes. The WinFsp pipe is located at
\\.\pipe\WinFsp.{14E7137D-22B4-437A-B0C1-D21D1BDF3767}. Each command is sent as a UTF16 formatted string in bytes. Each
command requires a class name to be sent which refers to the name of the registry key in the WinFsp registry that WinFsp
should use when executing the command. In this case it is cloudfuse. Most commands require an instance name to
uniquely identify the running mount. The instance name is simplify the mount path in our architecure.
uniquely identify the running mount. The instance name is simplify the mount path in our architecture.

Each command will write output to the named pipe to indicate success or failure. '$' indicates a successful command and
'!' indicates failure.
Expand Down
2 changes: 1 addition & 1 deletion internal/winservice/service_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ func writeCommandToUtf16(cmd uint16, args ...string) []byte {
return buf.Bytes()
}

// winFspCommand sends an instruciton to WinFsp.
// winFspCommand sends an instruction to WinFsp.
func winFspCommand(command []byte) ([]string, error) {
var retStrings []string
winPipe, err := windows.UTF16PtrFromString(winfspPipe)
Expand Down

0 comments on commit be289ba

Please sign in to comment.