Comments (5)
Notes:
To create a new share to test on the operator:
[root@smbshare3-0 /]# mkdir /share/
mkdir: cannot create directory ‘/share/’: File exists
[root@smbshare3-0 /]# chmod 777 /share
[root@smbshare3-0 /]# net conf addshare share /share writeable=y
[root@smbshare3-0 /]# net conf list
[global]
disable spoolss = yes
fileid:algorithm = fsid
load printers = no
printcap name = /dev/null
printing = bsd
smb ports = 445
vfs objects = fileid
netbios name = smbshare3
[smbshare3]
path = /mnt/dc189f61-d413-4b76-bb99-4b86beb30c0a
read only = no
[share]
path = /share
guest ok = no
read only = no
from samba-operator.
Reproducer:
#include <sys/stat.h>
#include <fcntl.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <errno.h>
#include <unistd.h>
int main( int argc, char **argv )
{
int fd;
if( argc < 2 ){
fprintf(stderr, "Usage %s <filename>\n\n",argv[0]);
exit(1);
}
if((fd = open( argv[1], O_CREAT| O_RDWR| O_EXCL, 0777)) == -1) {
fprintf(stderr,"Error opening file:%d: %s\n", errno, strerror(errno));
exit(2);
}
if(lseek(fd, 0xfffffff0000 - 1, SEEK_SET) == -1) {
fprintf(stderr,"Error seeking offset:%d: %s\n", errno, strerror(errno));
exit(2);
}
if(write(fd, "a", 1)) {
fprintf(stderr,"Error writing:%d: %s\n", errno, strerror(errno));
exit(2);
}
fprintf(stderr, " -- Done\n");
return 0;
}
On the container samba within the samba-operator
First with the cephfs share
[root@smbshare3-0 /]# grep /mnt /proc/mounts
10.111.173.90:6789,10.110.224.62:6789,10.101.104.103:6789:/volumes/csi/csi-vol-0cb59f87-c54e-11ec-ad3d-1e1dd7acb57d/ae264282-34b6-4255-a25c-6d8f60d9fc5e /mnt/dc189f61-d413-4b76-bb99-4b86beb30c0a ceph rw,relatime,name=csi-cephfs-node,secret=<hidden>,acl,mds_namespace=myfs 0 0
[root@smbshare3-0 /]# /tmp/write_test /mnt/dc189f61-d413-4b76-bb99-4b86beb30c0a/test
Error seeking offset:22: Invalid argument
Then on /tmp
[root@smbshare3-0 /]# /tmp/write_test /tmp/test
-- Done
[root@smbshare3-0 /]# ls -lh /tmp/test
-rwxr-xr-x 1 root root 16T May 1 13:51 /tmp/test
from samba-operator.
Reported for cephfs at
https://tracker.ceph.com/issues/55510
from samba-operator.
@spuiuk wrote:
there was a comment this is a limitation imposed by the ceph MDS
by Jeff in the tracker and a suggested workaround. Not sure how applicable it is since it seems to involves a configuration change for the ceph setup ...
from samba-operator.
Yes. We either need to set this using the cephtool container or setup flapping.cephfs to ignore this for cephfs.
We are sure to hit more such issues once we start testing cephfs with sit-test-cases.
from samba-operator.
Related Issues (20)
- `TestShareAccessByDomainName` fails 100% on CentOS CI HOT 3
- Add ability to apply quotas to shares
- NT_STATUS_LOGON_FAILURE when rollout restart a Samba Statefulset with CTDB feature HOT 10
- need a contributing guide HOT 2
- Custom SMB configuration options HOT 11
- How to configure node selector if using a mixed K8S HOT 2
- document centos ci "commands" HOT 1
- initializing posix permissions handler: OSError: [Errno 95] Operation not supported HOT 9
- Grouped Shares Issues HOT 4
- Need examples of how to integrate the shares with Pods/Services/Deployment HOT 3
- Support for Longhorn volumes? HOT 3
- posix permissions handler does not function as desired when using NFS as backend FS HOT 10
- Is it possible to scale down a clustered samba server instance? HOT 6
- Operator does not reload when SmbShare's settings are changed HOT 3
- parse_dfs_path_strict: Hostname <hostname> is not ours. HOT 2
- Allow for shares with public access (no authentication) HOT 2
- Set share.permissions.method to none on read only shares? HOT 1
- ARM64 support HOT 2
- Grouping shares of different pvcs HOT 1
- CI needs updating HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from samba-operator.