What's expected for swapping on samba share

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
  When I try to swapon a file on samba share in upstream, it's failed with "swapon failed: Invalid argumen".
I'm not sure if it's expected or a bug. Could you tell me more about it?

# dd if=/dev/zero of=file bs=4k count=1024
1024+0 records in
1024+0 records out
4194304 bytes (4.2 MB, 4.0 MiB) copied, 0.114088 s, 36.8 MB/s
# mkswap file
mkswap: file: insecure permissions 0755, 0600 suggested.
Setting up swapspace version 1, size = 4 MiB (4190208 bytes)
no label, UUID=81ae8f60-c04a-4c1b-8b63-d441fdbf3a92
# swapon file 
swapon: /root/cifs/file: insecure permissions 0755, 0600 suggested.
swapon: /root/cifs/file: swapon failed: Invalid argument
# uname -r
5.0.0-rc1+

Thanks.

-- 
Best regards!
XiaoLi Feng 冯小丽

Red Hat Software (Beijing) Co.,Ltd
filesystem-qe Team
IRC:xifeng,#channel: fs-qe



[Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux