Project

General

Profile

Actions

Tasks #64723

closed

Tasks #63293: Implement fscrypt in libcephfs and cephfs-fuse

Tasks #64160: RMW race detection

ffsb configure issues (gcc fails)

Added by Christopher Hoffman 2 months ago. Updated about 2 months ago.

Status:
Closed
Priority:
Normal
Category:
-
Target version:
-
% Done:

0%

Tags:
Reviewed:
Affected Versions:
Component(FS):
Labels (FS):
Pull request ID:

Description

Isolated the failure, see below

When appending to file and ls is performed on it at or before 5s it appears stale data is obtained.

rm test.c test.h -f
echo '/* confdefs.h.  */
#define PACKAGE_NAME "" 
#define PACKAGE_TARNAME "" 
#define PACKAGE_VERSION "" 
#define PACKAGE_STRING "" 
#define PACKAGE "ffsb"' > test.h
cat test.h >>test.c
cat >>test.c <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
sleep 5s
ls test.*
cat test.c

Consider the following:
1. remove sleep 5s, script will fail
2. remove ls, script will pass
3. change sleep to 6s, script will pass
4. remove ls and sleep, script will pass

Contents of test.c below

pass case:

/* confdefs.h.  */
#define PACKAGE_NAME "" 
#define PACKAGE_TARNAME "" 
#define PACKAGE_VERSION "" 
#define PACKAGE_STRING "" 
#define PACKAGE "ffsb" 
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}

fail case:

/* confdefs.h.  */
#define PACKAGE_NAME "" 
#define PACKAGE_TARNAME "" 
#define PACKAGE_VERSION "" 
#define PACKAGE_STRING "" 
#define PACKAGE "ffsb" 


Related issues 1 (0 open1 closed)

Related to CephFS - Tasks #64413: File size is not correct after rmwResolvedChristopher Hoffman

Actions
Actions

Also available in: Atom PDF