[Cialug] Samba Share Size

Jonathan C. Bailey jbailey at co.marshall.ia.us
Sun Mar 23 21:13:35 CDT 2008


Looks like that may have worked.. I used the script below and it reports the correct usage on a "2gb" drive. Just need to test it now..

df $1 | tail -1 | awk '{print $(NF-4),2048000}'

-Jon

----- Original Message -----
From: "Dave Weis" <djweis at internetsolver.com>
To: "Central Iowa Linux Users Group" <cialug at cialug.org>
Sent: Sunday, March 23, 2008 8:15:09 PM GMT -06:00 US/Canada Central
Subject: Re: [Cialug] Samba Share Size


Look into the dfree command parameter, I think it was originally 
intended for reporting available space under quota but could probably be 
misused into what you want to do.

Jonathan C. Bailey wrote:
> I was afraid to hear that.. I can't repartition the machine that the share is going to. We're moving this particular share from an NT4 machine that is being decommissioned (it has it's own partition now) to a Samba machine. Oh well.. Performance shouldn't be too much of an issue since there is only about 10 users of the application. Also, the application has been replaced, but we have to keep it around for history.
> 
> -Jon
> 
> 
> ----- Original Message -----
> From: "Jeffrey Ollie" <jeff at ocjtech.us>
> To: "Central Iowa Linux Users Group" <cialug at cialug.org>
> Sent: Sunday, March 23, 2008 5:56:22 PM GMT -06:00 US/Canada Central
> Subject: Re: [Cialug] Samba Share Size
> 
> On Sun, Mar 23, 2008 at 5:28 PM, Jonathan C. Bailey
> <jbailey at co.marshall.ia.us> wrote:
>> Anyone know of a way to "artificially" limit the disk size/max size of a share? I've got an old DOS program that seems to corrupt files if it's on a drive larger than 2gb. I figure if all else fails, I'll create a 2gb file and mount it as loopback.
> 
> If you were using LVM it'd be pretty easy to create a 2GB partittion
> and export that.  Otherwise mounting a 2GB fille on a loopback should
> work, although it may be a bit slower than exporting a native
> partition.

_______________________________________________
Cialug mailing list
Cialug at cialug.org
http://cialug.org/mailman/listinfo/cialug


More information about the Cialug mailing list