The FreeBSD Diary

The FreeBSD Diary (TM)

Providing practical examples since 1998

If you buy from Amazon USA, please support us by using this link.
[ HOME | TOPICS | INDEX | WEB RESOURCES | BOOKS | CONTRIBUTE | SEARCH | FEEDBACK | FAQ | FORUMS ]

 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Previous Message  |  Next Message 
 A little script to attach and detach your cfs
Author: Binary 
Date:   08-02-02 22:09

Hey!
Great article.
Quick and easy and right to the point.

Here's a little script I wrote to connect to my private cfs.
Call it what you want and place it in your $HOME/bin.
---------------------------------------------------
#!/bin/sh

case "$1" in
-m)
/usr/local/bin/cattach -t 15 $HOME/.private .private
;;
-u)
/usr/local/bin/cdetach .private
;;
*)
echo "Usage: `basename $0` [-m|-u]" >&2
;;
esac

exit 0
---------------------------------------------------

As for the test result:

Crypted fs:
Fri Feb 8 20:06:32 CET 2002
100000+0 records in
100000+0 records out
51200000 bytes transferred in 61.063670 secs (838469 bytes/sec)
Fri Feb 8 20:07:33 CET 2002

!crypted fs:
Fri Feb 8 20:07:39 CET 2002
100000+0 records in
100000+0 records out
51200000 bytes transferred in 4.019759 secs (12737082 bytes/sec)
Fri Feb 8 20:07:43 CET 2002

Don't know why the speed is so slow on the cfs..

Binary

 Reply To This Message  |  Forum List  |  Flat View   Newer Topic  |  Older Topic 

 Topics Author  Date
 A little script to attach and detach your cfs   new
Binary 08-02-02 22:09 


 Forum List  |  Need a Login? Register Here 
 User Login
 User Name:
 Password:
 Remember my login:
   
 Forgot Your Password?
Enter your email address or user name below and a new password will be sent to the email address associated with your profile.
How to get the most out of the forum

phorum.org