Crypted folder is a disk space killer !

Got a feature request? Great! Post your ideas here!
jcheger
Posts: 1
youtube meble na wymiar Warszawa
Joined: Sat Sep 21, 2013 9:00 am

Crypted folder is a disk space killer !

Post by jcheger »

It seems you're missing a "Bug" section in this forum.

Got an AS-602T on today. Looks nice, but it seems there is a huge bug. While testing a crypted share, and having some doubts of using a sparse file that can only grow and never shrink, it appears that the sparse file is growing by 0.5 MB / minute. This means that a 2.7 TB disk space will be filled 5400 minutes = 3.75 days.

Rebooted the system twice, but same issue. No connection to the share needed. Only need to mount the crypted share.

Very easy to reproduce:
- mount a crypted folder (an empty one is good enough)
# watch ls -lahs /volume1/.@loopfiles
# watch df /dev/md1

NAS info: AS-602T, 2x 3TB WD Red, ADM 2.0.2R9I1. Fresh install, no package, no tuning.

FYI: I've tested the same configuration on my Ubuntu station, but the sparse file is not growing alone though.
User avatar
James.S@AST
Posts: 292
Joined: Wed May 23, 2012 8:18 pm

Re: Crypted folder is a disk space killer !

Post by James.S@AST »

Hi there,
Do you mean that you are not moving any file in to that crypted folder, however its "growing" by itself?

If so, please help to dump health record, and email to me. (Go to System Informaiton\DR. ASUSTOR to click on the Export Health Record button)
We will then analyze the system log.

Cheers,
JAMES
I dream of painting and then I paint my dream.

Storage: AS-604T
Network: Belkin N1 Wireless/F5D8231
Laptop: ASUS Windows 7 64-bit Ultimate
Media Player: HP NC6000& Wii & ASUSTOR NAS with Boxee App
Portable: HTC EVO 3D& The New iPad
aquarius
Posts: 14
Joined: Tue May 28, 2013 5:25 pm

Re: Crypted folder is a disk space killer !

Post by aquarius »

Dear jcheger

I think this is as expected for a encrypted folder.

I also tried to create the encrypted folder
root@AS-304T:~ # df
Filesystem 1K-blocks Used Available Use% Mounted on
tmpfs 356820 232 356588 0% /tmp
tmpfs 256 0 256 0% /share
/dev/md0 2063120 349548 1608772 18% /volume0
/dev/md1 5801070432 676140616 5121784040 12% /volume1
/dev/mapper/test.1 5755364608 190760 5465120328 0% /volume1/test
/dev/mapper/encrypt.1
5755364608 190760 5465120328 0% /volume1/encrypt
root@AS-304T:~ # ls -lahs /volume1/.@loopfiles/
total 90994736
4 drw-r--r-- 2 root root 4.0K Sep 23 12:20 ./
4 drwxr-xr-x 21 root root 4.0K Sep 23 14:50 ../
45497376 -rw-r--r-- 1 root root 5.4T Sep 23 16:53 encrypt
45497352 -rw-r--r-- 1 root root 5.4T Sep 23 16:50 test

After I created the encrypted folder,and keep it empty for hours.
An encrypted folder will take about 45497352 blocks - it is 45497352/5755364608 = 0.0079 ( 0.79% of volume ) for the loop device.

ASUSTOR uses the loop device(a loop file) to mount the encrypted folder.
The system will create the sparse file for the encrypted folder, and it will be mapping to the
capacity of the volume. It might take about 0.79 % of the volume for the initialization for the loop device.
After the encrypted folder is initialized, it will not consume the capacity until you write files into the encrypted folder.