Re: [ANN] unionfs patchset-13 release

2006-06-02 Thread Dario Freni
Daichi GOTO ha scritto:
> Hi Guys!
> 
> It is my pleasure and honor to announce the availability of
> the unionfs patchset-13.
> 
> Patchset-13:
>For 7-current
>  http://people.freebsd.org/~daichi/unionfs/unionfs-p13.diff
> 
>For 6.x
>  http://people.freebsd.org/~daichi/unionfs/unionfs6-p13.diff
> 
>Changes in unionfs-p13.diff
>  - Fixed a bug that leads a panic around compat2 just
>after VOP_RENAME call.
> 
> The documents of those unionfs patches:
> 
>   http://people.freebsd.org/~daichi/unionfs/  (English)
>   http://people.freebsd.org/~daichi/unionfs/index-ja.html  (Japanese)
> 
> Guys taking some panic troubles with p12, please try the p13 :)
> We think that p13 is getting be no-panic code quality.

Great work! There's a test iso available via torrent:

http://torrent.freesbie.org/FreeSBIE-unionfs-i386-20060602.iso.torrent

It seems quite stable. Testing is welcome. If it can be considered
stable enough, I'll put it in our upcoming release. Please note that
this kernel is compiled with debugging options enabled, so it is not
good to see if performance are affected or not. I'm going to make a new
build with a clean kernel with generic options.

Bye,

-- 
Dario Freni ([EMAIL PROTECTED])
FreeSBIE project is looking for a new builder machine!
Check http://www.freesbie.org/donations.html



signature.asc
Description: OpenPGP digital signature


Re: Installation from USB pen

2006-04-28 Thread Dario Freni
Brooks Davis ha scritto:
> On Wed, Mar 22, 2006 at 02:58:46AM +0100, Dario Freni wrote:
>> Hi everybody,
>> attached a tiny script to convert a FreeBSD install iso image to a
>> binary ufs image ready to be flashed e.g. on an USB pendrive.
>>
>> The size of the ufs image is calculated from the iso one. The usage for
>> the script is quite simple:
>>
>> ./fbsd-install-iso2img.sh iso-path img-path
>>
>> Once you're done, you can dd the img directly to an USB pen. If you also
>> want to make a serial-console install image just set the serial variable
>> on top of the script to 1.
>>
>> This script is derived from another similar one that I made for the
>> pfSense project. It was requested for those kind of systems which have
>> an usb port booting-capable and a serial console.
>>
>> I hope you'll find it useful. Bye,
> 
> Way cool!  We've to tons of boxes that are a complete pain is the ass to
> install on via CD, this will save tons of time.  Obviously, it would be
> better it we made one of these as part of the release build and put it
> on the ftp site, but this is a hugh step in the right direction.
> 
> One minor nit, you might want to put a check that the user is root at the
> top of the script since that is a requirement.
> 
>> P.S.: beer-ware license
> 
> Are you going to be at BSDCan. :)

Hey! Thanks to Dan Langille and BSDCan I'm going to be there! :) I
definitely want my beer! :P

-- 
Dario Freni ([EMAIL PROTECTED])
FreeSBIE developer (http://www.freesbie.org)
GPG Public key at http://www.saturnero.net/saturnero.asc



signature.asc
Description: OpenPGP digital signature


Re: Installation from USB pen

2006-03-23 Thread Dario Freni
Brooks Davis wrote:
> One minor nit, you might want to put a check that the user is root at the
> top of the script since that is a requirement.

Nice hint, I'll add it.

>> P.S.: beer-ware license
> 
> Are you going to be at BSDCan. :)

No funds for that. Hope to see you here in Milan at EuroBSDCon. There's
a really nice brewery ;)

-- 
Dario Freni ([EMAIL PROTECTED])
FreeSBIE developer (http://www.freesbie.org)
GPG Public key at http://www.saturnero.net/saturnero.asc



signature.asc
Description: OpenPGP digital signature


Installation from USB pen

2006-03-21 Thread Dario Freni
Hi everybody,
attached a tiny script to convert a FreeBSD install iso image to a
binary ufs image ready to be flashed e.g. on an USB pendrive.

The size of the ufs image is calculated from the iso one. The usage for
the script is quite simple:

./fbsd-install-iso2img.sh iso-path img-path

Once you're done, you can dd the img directly to an USB pen. If you also
want to make a serial-console install image just set the serial variable
on top of the script to 1.

This script is derived from another similar one that I made for the
pfSense project. It was requested for those kind of systems which have
an usb port booting-capable and a serial console.

I hope you'll find it useful. Bye,
Dario

P.S.: beer-ware license

-- 
Dario Freni ([EMAIL PROTECTED])
FreeSBIE developer (http://www.freesbie.org)
GPG Public key at http://www.saturnero.net/saturnero.asc
#!/bin/sh

# You can set some variables here. Edit them to fit your needs.

# Set serial variable to 0 if you don't want serial console at all,
# 1 if you want comconsole and 2 if you want comconsole and vidconsole
serial=0

set -u

if [ $# -lt 2 ]; then
echo "Usage: $0 source-iso-path output-img-path"
exit 1
fi

isoimage=$1; shift
imgoutfile=$1; shift

export tmpdir=$(mktemp -d -t fbsdmount)
# Temp file and directory to be used later
export tmpfile=$(mktemp -t bsdmount)

export isodev=$(mdconfig -a -t vnode -f ${isoimage})

echo " Building bootable UFS image "

ISOSIZE=$(du -k ${isoimage} | awk '{print $1}')
SECTS=$((($ISOSIZE + ($ISOSIZE/5))*2))

# Root partition size

echo "Initializing image..."
dd if=/dev/zero of=${imgoutfile} count=${SECTS}
ls -l ${imgoutfile}
export imgdev=$(mdconfig -a -t vnode -f ${imgoutfile})

bsdlabel -w -B ${imgdev}
newfs -O1 /dev/${imgdev}a

mkdir -p ${tmpdir}/iso ${tmpdir}/img

mount -t cd9660 /dev/${isodev} ${tmpdir}/iso
mount /dev/${imgdev}a ${tmpdir}/img

echo "Copying files to the image..."
( cd ${tmpdir}/iso && find . -print -depth | cpio -dump ${tmpdir}/img )
#bzcat ${tmpdir}/iso/dist/root.dist.bz2 | mtree -PUr -p ${tmpdir}/img 2>&1 > 
/dev/null

#echo "/dev/ufs/${UFS_LABEL} / ufs ro 1 1" > ${tmpdir}/img/etc/fstab

if [ ${serial} -eq 2 ]; then
echo "-D" > ${tmpdir}/img/boot.config
echo 'console="comconsole, vidconsole"' >> 
${tmpdir}/img/boot/loader.conf
elif [ ${serial} -eq 1 ]; then
echo "-h" > ${tmpdir}/img/boot.config
echo 'console="comconsole"' >> ${tmpdir}/img/boot/loader.conf
fi

cleanup() {
umount ${tmpdir}/iso
mdconfig -d -u ${isodev}
umount ${tmpdir}/img
mdconfig -d -u ${imgdev}
rm -rf ${tmpdir} ${tmpfile}
}

cleanup

ls -lh ${imgoutfile}

signature.asc
Description: OpenPGP digital signature


Re: patchset-9 release (Re: [unionfs][patch] improvements of the unionfs - Problem Report, kern/91010)

2006-03-20 Thread Dario Freni
Jacques Marneweck ha scritto:
> Danny Braniss wrote:
>>> Daichi GOTO wrote:
>>> 
>>>> All folks have interests in improved unionfs should keep attentions
>>>> and ask "how about merge?" at every turn :)
>>>>   
>>> OK.  How about a merge?
>>>
>>> I'd really like to see this in 6-STABLE.
>>>
>>> Regards,
>>>
>>> Jan Mikkelsen.
>>> 
>> just a 'me too'. I've been running with the patch(under 6.1) and it's 
>> definitely
>> better than the panics with the unpatched version. in other words,
>> IMHO, it does not break anything, and it actualy fixes somethings.
>>
>> danny
>>   
> Any ETA to when we can see this merged into 6.1 and 5.5?

This patchset doesn't apply in 5.x branch. The unionfs code of 5.x is
different and afaik is working quite well (we used it on freesbie 1.1
without problems).

Cheers,

-- 
Dario Freni ([EMAIL PROTECTED])
FreeSBIE developer (http://www.freesbie.org)
GPG Public key at http://www.saturnero.net/saturnero.asc



signature.asc
Description: OpenPGP digital signature


Re: patchset-8 release (Re: [unionfs][patch] improvements of the unionfs - Problem Report, kern/91010)

2006-02-10 Thread Dario Freni
Cy Schubert ha scritto:
> In message <[EMAIL PROTECTED]>, Dario Freni writes:
>> Daichi GOTO ha scritto:
>>> I have updated the patchset-8 of unionfs.
>>>
>>> Patchset-8:
>>>For 7-current
>>>  http://people.freebsd.org/~daichi/unionfs/unionfs-p8.diff
>>>
>>>For 6.x
>>>  http://people.freebsd.org/~daichi/unionfs/unionfs6-p8.diff
>>>
>>>Changes in unionfs-p8.diff
>>>  - Fixed the issue that user whom has access permission
>>>cannot change the directory because he cannot create
>>>its shadow directory. As a result of this fixed, now
>>>unionfs uses root permission creating shadow directory
>>>temporarily.
>>>
>>> The document of those unionfs patches is pretty improved by Hiroo
>>> ONO-san.
>>>
>>>   http://people.freebsd.org/~daichi/unionfs/  (English)
>>>   http://people.freebsd.org/~daichi/unionfs/index-ja.html  (Japanese)
>>>
>>> Please try -p8 Dario. We are thinking that you cat get it with -p8 :)
>> It doesn't compile on 6.x :/ (using unionfs6-p8.diff on a fresh RELENG_6)
>>
>> cc -c -O2 -pipe -fno-strict-aliasing  -Wall -Wredundant-decls 
>> -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes 
>> -Wpointer-arith -Winline -Wcast-qual  -fformat-extensions -std=c99 
>> -nostdinc -I-  -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq 
>> -I/usr/src/sys/contrib/ipfilter -I/usr/src/sys/contrib/pf 
>> -I/usr/src/sys/contrib/dev/ath -I/usr/src/sys/contrib/dev/ath/freebsd 
>> -I/usr/src/sys/contrib/ngatm -I/usr/src/sys/dev/twa -D_KERNEL 
>> -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common 
>> -finline-limit=8000 --param inline-unit-growth=100 --param 
>> large-function-growth=1000  -mno-align-long-strings 
>> -mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse2 
>> -ffreestanding -Werror  /usr/src/sys/ufs/ufs/ufs_lookup.c
>> /usr/src/sys/ufs/ufs/ufs_lookup.c: In function `ufs_direnter':
>> /usr/src/sys/ufs/ufs/ufs_lookup.c:880: error: `vdp' undeclared (first 
>> use in this function)
>> /usr/src/sys/ufs/ufs/ufs_lookup.c:880: error: (Each undeclared 
>> identifier is reported only once
>> /usr/src/sys/ufs/ufs/ufs_lookup.c:880: error: for each function it 
>> appears in.)
>> *** Error code 1
>>
>> Stop in /usr/obj.unionfs-i386/usr/src/sys/FREESBIE.
>> *** Error code 1
>>
>> Stop in /usr/src.
>> *** Error code 1
>>
>> Stop in /usr/src.
> 
> Replace the line in the patch that says:
> 
> +   if (OFSFMT(vdp))
> 
> with:
> 
> +   if (OFSFMT(dvp))
> 
> 

Ok, it compiled. New iso is at:

http://torrent.freesbie.org/FreeSBIE-unionfs-i386-20060210.iso.torrent

It seems better, I can log in and even startx. Further testing is coming :)

Thanks,
Dario

-- 
Dario Freni ([EMAIL PROTECTED])
FreeSBIE developer (http://www.freesbie.org)
GPG Public key at http://www.saturnero.net/saturnero.asc



signature.asc
Description: OpenPGP digital signature


Re: patchset-8 release (Re: [unionfs][patch] improvements of the unionfs - Problem Report, kern/91010)

2006-02-09 Thread Dario Freni

Daichi GOTO ha scritto:

I have updated the patchset-8 of unionfs.

Patchset-8:
   For 7-current
 http://people.freebsd.org/~daichi/unionfs/unionfs-p8.diff

   For 6.x
 http://people.freebsd.org/~daichi/unionfs/unionfs6-p8.diff

   Changes in unionfs-p8.diff
 - Fixed the issue that user whom has access permission
   cannot change the directory because he cannot create
   its shadow directory. As a result of this fixed, now
   unionfs uses root permission creating shadow directory
   temporarily.

The document of those unionfs patches is pretty improved by Hiroo
ONO-san.

  http://people.freebsd.org/~daichi/unionfs/  (English)
  http://people.freebsd.org/~daichi/unionfs/index-ja.html  (Japanese)

Please try -p8 Dario. We are thinking that you cat get it with -p8 :)


It doesn't compile on 6.x :/ (using unionfs6-p8.diff on a fresh RELENG_6)

cc -c -O2 -pipe -fno-strict-aliasing  -Wall -Wredundant-decls 
-Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes 
-Wpointer-arith -Winline -Wcast-qual  -fformat-extensions -std=c99 
-nostdinc -I-  -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq 
-I/usr/src/sys/contrib/ipfilter -I/usr/src/sys/contrib/pf 
-I/usr/src/sys/contrib/dev/ath -I/usr/src/sys/contrib/dev/ath/freebsd 
-I/usr/src/sys/contrib/ngatm -I/usr/src/sys/dev/twa -D_KERNEL 
-DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common 
-finline-limit=8000 --param inline-unit-growth=100 --param 
large-function-growth=1000  -mno-align-long-strings 
-mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse2 
-ffreestanding -Werror  /usr/src/sys/ufs/ufs/ufs_lookup.c

/usr/src/sys/ufs/ufs/ufs_lookup.c: In function `ufs_direnter':
/usr/src/sys/ufs/ufs/ufs_lookup.c:880: error: `vdp' undeclared (first 
use in this function)
/usr/src/sys/ufs/ufs/ufs_lookup.c:880: error: (Each undeclared 
identifier is reported only once
/usr/src/sys/ufs/ufs/ufs_lookup.c:880: error: for each function it 
appears in.)

*** Error code 1

Stop in /usr/obj.unionfs-i386/usr/src/sys/FREESBIE.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: patchset-7 release (Re: [unionfs][patch] improvements of the unionfs - Problem Report, kern/91010)

2006-02-06 Thread Dario Freni

Daichi GOTO wrote:

At this moment, we are making -p8 that solves your problem, Dario.
Please wait -p8, I think you get good satisfaction by -p8 :)


Thank you and Masanori so much for working on this :) The less I can do 
is to report feedback and help improving.


Bye,
Dario

___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: patchset-7 release (Re: [unionfs][patch] improvements of the unionfs - Problem Report, kern/91010)

2006-02-05 Thread Dario Freni
Daichi GOTO ha scritto:
>>>> I have updated the patches:
>>>>
>>>>   For 7-current patch
>>>> http://people.freebsd.org/~daichi/unionfs/unionfs-p5.diff
>>>>
>>>>   For 6.x patch
>>>> http://people.freebsd.org/~daichi/unionfs/unionfs6-p5.diff
>>>>
>>>> Changes from -p4:
>>>>   - fixed around "can't fifo/vnode bypass -1" panic problem
>>>>   - added some comments into source-code for src-developer
>>>>   - edited style as style(9) saye
>>> -- 
>>>Daichi GOTO, http://people.freebsd.org/~daichi
>>
>> so far so good! it's not crashing my diskless.
>>
>> thanks,
>> danny
> 
> It's good :)
> 

No panics anymore but still got some problems. I have unionfs on /usr
and cannot access /usr/home/freesbie directly (i.e.: if i login as
'freesbie' user right after boot I can't access /usr/home at all,
getting a permission denied error).

To reproduce, download iso from torrent:

http://torrent.freesbie.org/FreeSBIE-unionfs-i386-20060205.iso.torrent

and log in as freesbie.

Bye and thanks,
Dario

-- 
Dario Freni ([EMAIL PROTECTED])
FreeSBIE developer (http://www.freesbie.org)
GPG Public key at http://www.saturnero.net/saturnero.asc



signature.asc
Description: OpenPGP digital signature


Re: patchset-7 release (Re: [unionfs][patch] improvements of the unionfs - Problem Report, kern/91010)

2006-02-04 Thread Dario Freni
Daichi GOTO ha scritto:
> I have updated the patchset-7 (of course patchset-6 exists).
> 
> Patchset-7:
>For 7-current
>  http://people.freebsd.org/~daichi/unionfs/unionfs-p7.diff
> 
>For 6.x
>  http://people.freebsd.org/~daichi/unionfs/unionfs6-p7.diff
> 
>changes -p7 from -p6:
>  - fixed problem that removes not empty directory.
>For fixing this, I fixed a problem (src/sys/ufs/ufs/ufs_lookup.c)
>regarding to white-out uncorrect work when fails of making
>shadow directory.
>  - fixed "Returning with 1 locks held." panic problem.
>Unfree of vnode lock when it fails making of shadow dirrectory
>led the problem.
> 
> Patchset-6:
>For 7-current
>  http://people.freebsd.org/~daichi/unionfs/unionfs-p6.diff
> 
>For 6.x
>  http://people.freebsd.org/~daichi/unionfs/unionfs6-p6.diff
> 
>changes -p6 from -p5:
>  - fixed ln(1) fail problem when -f is optioned. And
>problems around hardling-specific are fixed
>  - added VOP_GETWRITEMOUNT treatment. Pre-implementation
>has probability of write-fail bacause of unwork of
>vn_start_write.
> 
> And now, we have an unionfs explanation site in English:
>   http://people.freebsd.org/~daichi/unionfs/  (English)
>   http://people.freebsd.org/~daichi/unionfs/index-ja.html  (Japanese)
> 
> Great thanks for Yoshihiro Ota-san :) He gave me that translated
> text. Please read the explanation text whom has interest in
> around unionfs.
> 
> Thanks!

Thanks! I'll test it ASAP.

-- 
Dario Freni ([EMAIL PROTECTED])
FreeSBIE developer (http://www.freesbie.org)
GPG Public key at http://www.saturnero.net/saturnero.asc



signature.asc
Description: OpenPGP digital signature


Re: [unionfs][patch] improvements of the unionfs - Problem Report, kern/91010

2006-01-17 Thread Dario Freni
Daichi GOTO ha scritto:
> I have updated the patches:
> 
>   For 7-current patch
> http://people.freebsd.org/~daichi/unionfs/unionfs-p5.diff
> 
>   For 6.x patch
> http://people.freebsd.org/~daichi/unionfs/unionfs6-p5.diff
> 
> Changes from -p4:
>   - fixed around "can't fifo/vnode bypass -1" panic problem
>   - added some comments into source-code for src-developer
>   - edited style as style(9) saye

FreeSBIE test image with a debug kernel patched with -p5 patchset:

http://torrent.freesbie.org/FreeSBIE-unionfs-i386-20060116.iso.torrent

To obtain a panic, just do normal operations like login as freesbie
(/usr/home/freesbie is under unionfs). If you log in as root, you should
be able to inspect something in the filesystem without having a panic.

The panic is triggered by the chdir syscall:

panic: userret: Returning with 1 locks held.
cpuid = 0
KDB: enter: panic
[thread pid 592 tid 100063 ]
Stopped at  kdb_enter+0x2c: leave
db> bt
Tracing pid 592 tid 100063 td 0xc1a8a180
kdb_enter(c08fc650,100,c1a8a180,d,c1f2c000) at kdb_enter+0x2c
panic(c08ff985,1,d,c1a8a180,c1f2c000) at panic+0x17f
ast(c1a8a180,c83c5d38,43,2,43) at ast
syscall(3b,3b,3b,3e8,bfbfe940) at syscall+0x186
Xint0x80_syscall() at Xint0x80_syscall+0x1f
--- syscall (13, FreeBSD ELF32, fchdir), eip = 0x28131cdb, esp =
0xbfbfe84c, ebp = 0xbfbfe8e8 ---
db>

Bye,
Dario

-- 
Dario Freni ([EMAIL PROTECTED])
FreeSBIE developer (http://www.freesbie.org)
GPG Public key at http://www.saturnero.net/saturnero.asc


signature.asc
Description: OpenPGP digital signature


Re: [unionfs][patch] improvements of the unionfs - Problem Report, kern/91010

2005-12-29 Thread Dario Freni
Masanori OZAWA wrote:
[...]

Nice work! This is just a "works for me". In only find some issues with
permissions that were already present in the previous implementation of
unionfs. Some of them are partially corrected in the "useful" copymode.
I mailed the details to the author.

I'm scheduling a FreeSBIE test build which will use that (RELENG_6
based). Will post the link here when it is completed.

Bye,
Dario

-- 
Dario Freni ([EMAIL PROTECTED])
FreeSBIE developer (http://www.freesbie.org)
GPG Public key at http://www.saturnero.net/saturnero.asc
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: FreeBSD VGA Framebuffer

2005-12-21 Thread Dario Freni
Alastair G. Hogge ha scritto:
> On Wed, 21 Dec 2005 07:51, Dale DuRose wrote:
> 
>>Hi
> 
> Hello
> 
> 
>>I'm wondering if anyone knows if freebsd has a vga framebuffer?
>>and how to use it?
> 
> You could look into KGI:
> http://kgi-wip.sourceforge.net/
> http://people.freebsd.org/~nsouch/kgi4BSD/
> 
> There is patch set around for RELENG_6 from a few months ago.
> You have to build a new kernel with sources, setup LibGGI and give it ago.

Can you point us to this patchset? According to the site it seems its
development freezed at 2005/01/15, and I can't find any other
informations about that.

-- 
Dario Freni ([EMAIL PROTECTED])
FreeSBIE developer (http://www.freesbie.org)
GPG Public key at http://www.saturnero.net/saturnero.asc


signature.asc
Description: OpenPGP digital signature


Re: Date set to epoch when root filesystem is cd9660

2005-11-18 Thread Dario Freni
Dario Freni wrote:
> kern/vfs_mount.c:1313:
> 
>  /*
>   * We mount devfs prior to mounting the / FS, so the first
>   * entry will typically be devfs.
>   */
>   mp = TAILQ_FIRST(&mountlist);
>   KASSERT(mp != NULL, ("%s: mountlist is empty", __func__));
>  /*
>   * Iterate over all currently mounted file systems and
>   * the time stamp found to check and/or initialize the RTC.
>   * Typically devfs has no time stamp and the only other FS
>   * is the actual / FS.
>   */
>  do {
> if (mp->mnt_time != 0)
> inittodr(mp->mnt_time);
> mp = TAILQ_NEXT(mp, mnt_list);
>  } while (mp != NULL);

Found when this code was introduced:

===
Revision 1.186 / (download) - annotate - [select for diffs], Fri Mar 25
01:56:12 2005 UTC (7 months, 3 weeks ago) by marcel
Branch: MAIN

Fix inittodr() invocation. Now that devfs is mounted before the
actual root file system is mounted, the first entry on the mountlist
is not the root file system and the timestamp for that entry is
typically 0. Passing that to inittodr() caused annoying errors on
alpha and ia64.
So, call inittodr() for all file systems on mountlist, but only when
the timestamp (mnt_time) is non-zero.
===

-- 
Dario Freni ([EMAIL PROTECTED])
FreeSBIE developer (http://www.freesbie.org)
GPG Public key at http://www.saturnero.net/saturnero.asc


signature.asc
Description: OpenPGP digital signature


Date set to epoch when root filesystem is cd9660

2005-11-18 Thread Dario Freni
Hi guys,
I encountered this problem during the summer, asked on current@ but
didn't receive response.

When root filesystem is cd9660, the date of the system is set to epoch.

I made some empiric debugging, discovering that the problem strongly
depends on the mountroot setting and not on the different loader used
for cd-boot. Have taken a look at the code and discovered what it seems
to me the responsible of the bug.

kern/vfs_mount.c:1313:

 /*
  * We mount devfs prior to mounting the / FS, so the first
  * entry will typically be devfs.
  */
  mp = TAILQ_FIRST(&mountlist);
  KASSERT(mp != NULL, ("%s: mountlist is empty", __func__));
 /*
  * Iterate over all currently mounted file systems and
  * the time stamp found to check and/or initialize the RTC.
  * Typically devfs has no time stamp and the only other FS
  * is the actual / FS.
  */
 do {
if (mp->mnt_time != 0)
inittodr(mp->mnt_time);
mp = TAILQ_NEXT(mp, mnt_list);
 } while (mp != NULL);


Haven't investigate further, but I think that when the root is cd9660,
mp->mnt_time is 0 and inittodr isn't initialised.

Any idea on how to resolve this?

Bye and thanks in advance,
Dario

-- 
Dario Freni ([EMAIL PROTECTED])
FreeSBIE developer (http://www.freesbie.org)
GPG Public key at http://www.saturnero.net/saturnero.asc


signature.asc
Description: OpenPGP digital signature


[Fwd: date set to epoch when booting from cd]

2005-10-06 Thread Dario Freni
Ideas here?
--- Begin Message ---
Hi guys,
  me and other testers have encountered a strange problem when booting
from CDroms created with freesbie2 toolkit: the date is set to
epoch. This don't happens with ufs image, only with iso with cd9660
root set.

The iso is created with:

mkisofs -b boot/cdboot -no-emul-boot -J -r -ldots -l -L -V ${LABEL} -p FreeSBIE 
-o $ISOPATH .

which is almost the same way used in release scripts.

How can I help debugging this?

Thanks to everybody,
Dario

-- 
Dario Freni ([EMAIL PROTECTED])
FreeSBIE developer (http://www.freesbie.org)
GPG Public key at http://www.saturnero.net/saturnero.asc


pgpgYA3EA8kYV.pgp
Description: PGP signature
--- End Message ---


signature.asc
Description: OpenPGP digital signature


FreeSBIE 2 toolkit, developers' preview

2005-08-30 Thread Dario Freni
Hi guys, I've put a snapshot of the now toolkit I've been working for
the Google Summer of Code here:

http://cvs.freesbie.org/~saturnero/freesbie2.tar.gz

If you have a FreeBSD version > 6.x, on i386, amd64 and powerpc, you can
give it a test and send feedbacks to me.

As usual, comments and suggestions are greatly appreciated.

Many thanks to Google for this wonderful opportunity, as well as FreeBSD
 release engeering members (particularly Murray Stokely) for mentoring,
Peter Grehan and many FreeBSD developers for being so nice and responsive.

Bye everybody,
Dario

-- 
Dario Freni ([EMAIL PROTECTED])
FreeSBIE developer (http://www.freesbie.org)
GPG Public key at http://www.saturnero.net/saturnero.asc


signature.asc
Description: OpenPGP digital signature


Re: [patch] rc.d/tmp (silly mkdir usage)

2005-08-02 Thread Dario Freni
Vasil Dimov wrote:
> Even we can use
> if [ -d /tmp -a -w /tmp ] ; then
> or (which is equivalent)
> if [ -d /tmp ] && [ -w /tmp ] ; then
> and save external commands (mkdir) execution and directory
> creation/deletion at all.

You can't use test -w here. The script is checking if there is a
read-only filesystem. -w checks only the file flags (according to the
man page, at least).

-- 
Dario Freni ([EMAIL PROTECTED])
FreeSBIE developer (http://www.freesbie.org)
GPG Public key at http://www.saturnero.net/saturnero.asc


signature.asc
Description: OpenPGP digital signature


Re: How to disable at-boot configuration of a network interface but permit manual use of rc.d?

2005-06-27 Thread Dario Freni
nduja# grep ifconfig_ed1 /etc/rc.conf
#ifconfig_ed1="DHCP"

nduja# sh /etc/rc.d/dhclient start
nduja# setenv ifconfig_ed1 DHCP
nduja# sh /etc/rc.d/dhclient start
Starting dhclient.
ed1: flags=108843 mtu 1500
inet6 fe80::250:baff:fe7a:a9bd%ed1 prefixlen 64 scopeid 0x3
inet 37.0.203.130 netmask 0xff00 broadcast 37.0.203.255
ether 00:50:ba:7a:a9:bd
media: Ethernet 10baseT/UTP 
status: active
nduja#

Regards,
Dario

-- 
Dario Freni ([EMAIL PROTECTED])
FreeSBIE developer (http://www.freesbie.org)
GPG Public key at http://www.saturnero.net/saturnero.asc


pgpZkgFf17ZuZ.pgp
Description: PGP signature


Re: Behaviour of mount_unionfs

2005-05-23 Thread Dario Freni
On Mon, May 23, 2005 at 08:34:59AM +0200, Davide D'Amico wrote:
> > cupa:/mnt/freesbie# mount /dev/md3 unionvar/
> > cupa:/mnt/freesbie# mount_unionfs unionvar/ var/
> what if 
> mount_unionfs var/ unionvar/ ?

It works correctly. Patching system ASAP.

-- 
Dario Freni ([EMAIL PROTECTED]) - satu on Azzurra
FreeSBIE developer (http://www.freesbie.org)
GPG Public key at http://www.saturnero.net/saturnero.asc


pgpxORoUSvD2x.pgp
Description: PGP signature


Behaviour of mount_unionfs

2005-05-23 Thread Dario Freni
cupa:/mnt/freesbie# ll
total 4
drwxr-xr-x  2 root  wheel  512 23 Mag 05:13 unionvar
drwxr-xr-x  2 root  wheel  512 23 Mag 05:13 var
cupa:/mnt/freesbie# mdconfig -a -t vnode -f /usr/local/freesbieiso/uzip/var.uzip
md2
cupa:/mnt/freesbie# mount /dev/md2.uzips1a var
cupa:/mnt/freesbie# ls -l var/
total 40
drwxrwxr-x  2 rootoperator  512 23 Mag 04:54 .snap
drwxr-xr-x  2 rootwheel 512 23 Mag 04:33 account
drwxr-xr-x  4 rootwheel 512 23 Mag 04:33 at
drwxr-x---  2 rootwheel 512 23 Mag 04:33 backups
drwxr-x---  2 rootwheel 512 23 Mag 04:33 crash
drwxr-x---  3 rootwheel 512 23 Mag 04:33 cron
drwxr-xr-x  6 rootwheel 512 23 Mag 04:33 db
dr-xr-xr-x  2 rootwheel 512 23 Mag 04:33 empty
drwxrwxr-x  2 rootgames 512 23 Mag 04:33 games
drwx--  2 rootwheel 512 23 Mag 04:33 heimdal
drwxr-xr-x  2 rootwheel 512 23 Mag 04:33 log
drwxrwxr-x  2 rootmail  512 23 Mag 04:33 mail
drwxr-xr-x  2 daemon  wheel 512 23 Mag 04:33 msgs
drwxr-xr-x  5 rootwheel 512 23 Mag 04:33 named
drwxr-xr-x  2 rootwheel 512 23 Mag 04:33 preserve
drwxr-xr-x  4 rootwheel 512 23 Mag 04:48 run
drwxrwxr-x  2 rootdaemon512 23 Mag 04:33 rwho
drwxr-xr-x  8 rootwheel 512 23 Mag 04:33 spool
drwxrwxrwt  3 rootwheel 512 23 Mag 04:48 tmp
drwxr-xr-x  2 rootwheel 512 23 Mag 04:35 yp
cupa:/mnt/freesbie# mdconfig -a -t malloc -o compress -s 16m
md3
cupa:/mnt/freesbie# /sbin/newfs -U /dev/md3
/dev/md3: 16.0MB (32768 sectors) block size 16384, fragment size 2048
using 4 cylinder groups of 4.02MB, 257 blks, 576 inodes.
with soft updates
super-block backups (for fsck -b #) at:
 160, 8384, 16608, 24832
cupa:/mnt/freesbie# mount /dev/md3 unionvar/
cupa:/mnt/freesbie# mount_unionfs unionvar/ var/
cupa:/mnt/freesbie# ls -l var/
total 40
drwxrwxr-x   4 root  operator  512 23 Mag 05:14 .snap
drwxr-xr-x   4 root  wheel 512 23 Mag 05:15 account
drwxr-xr-x   6 root  wheel 512 23 Mag 05:15 at
drwxr-xr-x   4 root  wheel 512 23 Mag 05:15 backups
drwxr-xr-x   4 root  wheel 512 23 Mag 05:15 crash
drwxr-xr-x   5 root  wheel 512 23 Mag 05:15 cron
drwxr-xr-x   8 root  wheel 512 23 Mag 05:15 db
drwxr-xr-x   4 root  wheel 512 23 Mag 05:15 empty
drwxr-xr-x   4 root  wheel 512 23 Mag 05:15 games
drwxr-xr-x   4 root  wheel 512 23 Mag 05:15 heimdal
drwxr-xr-x   4 root  wheel 512 23 Mag 05:15 log
drwxr-xr-x   4 root  wheel 512 23 Mag 05:15 mail
drwxr-xr-x   4 root  wheel 512 23 Mag 05:15 msgs
drwxr-xr-x   7 root  wheel 512 23 Mag 05:15 named
drwxr-xr-x   4 root  wheel 512 23 Mag 05:15 preserve
drwxr-xr-x   6 root  wheel 512 23 Mag 05:15 run
drwxr-xr-x   4 root  wheel 512 23 Mag 05:15 rwho
drwxr-xr-x  10 root  wheel 512 23 Mag 05:15 spool
drwxr-xr-x   5 root  wheel 512 23 Mag 05:15 tmp
drwxr-xr-x   4 root  wheel 512 23 Mag 05:15 yp
cupa:/mnt/freesbie#

With unionfs we lost (again) every kind of permission. From the man
page I cannot realize if this really is the expected behaviour.

Bye,
Dario

-- 
Dario Freni ([EMAIL PROTECTED]) - satu on Azzurra
FreeSBIE developer (http://www.freesbie.org)
GPG Public key at http://www.saturnero.net/saturnero.asc


pgpYLaYvzHBq7.pgp
Description: PGP signature


FreeSBIE 1.1 Release Announcement

2004-12-07 Thread Dario Freni
It's our honour and pleasure to announce FreeSBIE 1.1, a LiveCD based
on FreeBSD 5.3-RELEASE.
Some of the innovations since 1.0 include:

- A renewed series of scripts to support power users in the use of
  FreeSBIE 1.1.
- An installer to let users install FreeSBIE 1.1 on their hard drives,
  thus having a powerful operating system such as FreeBSD, but with all
  the personalizations FreeSBIE 1.1 carries.
- The presence of the best open source software, chosen and
  personalized, such as X.Org 6.7, XFCE 4.2RC1, Firefox 1.0 and
  Thunderbird 0.9.2.

Moreover, many bugs were solved thanks also to the help of numerous
beta testers which we are honoured to thank.
 For more information about FreeSBIE, visit the website:
http://www.FreeSBIE.org


Mission 

FreeSBIE 1.1 was created from the omonimous toolkit to offer users a
tool whose uses range from networking activities, to multimedia, to
disaster recovery.
  The real limit FreeSBIE suffers from is user's fantasy, who will be
able to appreciate its flexibility for many uses.


Included software

Along with FreeSBIE is distributed a complete and heterogenous
collection of the best open source software now available, making it
the ideal tool for the student, the teacher, the network administrator,
the computer addicted, the scheptical, the curious and also the newbie
taking a first approach to FreeBSD 5.3.
  For a complete list of the included software, please consult:

http://www.freesbie.org/doc/1.1/FreeSBIE-1.1-i386.pkg_info.txt


Innovations

The most interesting innovation in FreeSBIE 1.1 is represented by
the presence of the installer supplied by the DragonFlyBSD Installer
Team (http://www.bsdinstaller.org), which will let users install
FreeSBIE 1.1 on their hard drive.
 A help system was also created to help newcomers become familiar with
FreeSBIE 1.1, and to let them know the tools it provides.

FreeSBIE 1.1 comes with 2 Desktop Environments (apart from the
well-known shell) to satisfy the needs of those who want a lightweight
desktop environment, and those who want a complete one.


Acknowledgments

We would like to thank all the people who contributed to the creation
of FreeSBIE.

First of all, we would like to thank those who will inevitably be
forgotten, whose help we will never forget.
  Our special thanks go to the FreeBSD core team, and to those who orbit
around it: without you we wouldn't look at the world from obscure
little windows nowadays.
  
  We cannot forget to thank the DargonFlyBSD Installer Team, to whom
we promised to try DargonFlyBSD sooner or later: ok, we'll do it, as
long as you stop talking about KDE. ;-)


Availability

FreeSBIE 1.1 can be downloaded from one of the mirrors listed on the
website:

http://www.freesbie.org/?section=download-en 
and on:
http://mirrors.freesbie.org/

or using a BitTorrent client:
http://torrent.freesbie.org/FreeSBIE-1.1-i386.torrent


MD5 checksum of the CD image:

MD5 (FreeSBIE-1.1-i386.iso) = 61e6433b8ace7c83cee281b731e73f1c

_WARNING_: Check the md5 of the mirror you are downloading from.
Given the recent Security Advisory, the iso was updated recently.
Thus, it is possible that some mirrors still haven't updated to the
most recent image file available.

Have fun with FreeSBIE,
the project team


pgpLsheDYK16m.pgp
Description: PGP signature


FreeSBIE-1.0-i386 Released

2004-02-29 Thread Dario Freni
The FreeSBIE project is proud to announce the release of
FreeSBIE-1.0-i386.iso

FreeSBIE is a bootable CD with the FreeBSD operating system and a
collection of software to address the needs of an etherogeneus public.

FreeSBIE-1.0 is based on FreeBSD 5.2.1 for the ia32 platform, and has a
hardware recognition system which lets it find automagically all the
peripherals supported on FreeBSD 5.2.1.

FreeSBIE-1.0-i386.iso is the result of the toolkit provided for FreeBSD,
and is released to show the power of the operating system and of
FreeSBIE itself.

FreeSBIE-1.0-i386.iso is addressed to the following categories of users:

- System Administrators;
- Developers;
- Final users;

With FreeSBIE-1.0-i386.iso it is possible to satisfy users who:

- have the need for multimedia applications;
- make deep network analysis;
- have problems with damaged or unusable FreeBSD installations;
- want to test new FreeBSD functionalities;
- need a completely functional FreeBSD system;
- want to illustrate and/or release a product based on FreeBSD;
- need the power of FreeBSD but don't have the immediate chance to 
  install it/configure it.

FreeSBIE-1.0-i386.iso is also designed for day-to-day use through a
collection of programs which come with it, thought for a typical
workstation use:

- Evolution as Personal Information Manager;
- Gaim as Instant Messenger;
- Pan as newsreader;
- XMMS and MPlayer as multimedia players;
- XChat as IRC client

For a complete list of available applications on FreeSBIE-1.0-i386.iso,
check the file FreeSBIE-1.0-pkgs.txt available on our FTP sites (see
below).
When choosing the applications we tried to address both the needs of the
desktop users and console users. In fact we give you the chance to use
Mutt, as well as Evolution, and together with Firefox we provide links,
while with XChat we offer irssi.

Those interested in downloading our software, can find
FreeSBIE-1.0-i386.iso on the following FTP sites:

ftp://ftp.freesbie.org  
ftp://ftp2.freesbie.org


The main website for the FreeSBIE toolkit is:

http://www.FreeSBIE.org

where you can also find some more explicative screenshots.

Our thanks for the help provided goes to:
All the ones who are excluded from this list;
All the authors of the included packages;
The FreeBSD Team (http://www.FreeBSD.org);
The Italian FreeBSD Users Group (http://www.gufi.org);
[EMAIL PROTECTED] for the hardware donated;
[EMAIL PROTECTED] for the cloop utility FreeBSD port (compressed
filesystem)


FreeSBIE-1.0-i386.iso will surely not be error-prone, wanted or not, but
it's a 1.0 release, and as such please beg our pardon for our mistakes.
To contact the members of the FreeSBIE project, we invite you to visit
the project's website in the "contacts" section.

Some programs included are released under the GPL license. The related
sources can be found on the homepages of the rispected projects.

The FreeSBIE project remains open to suggestions, developments and
observations. Hoping to have created a usable product, efficient and
satisfying for your needs, we wish you

a great fun with FreeSBIE,
The FreeSBIE project


signature.asc
Description: Questa parte del messaggio =?ISO-8859-1?Q?=E8?= firmata


Re: read-only compressed fs (call for testers) [UPDATE]

2004-01-23 Thread Dario Freni
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

> Thank you by the FreeSBIE team.

 You can try a FreeSBIE iso with the geom_ugz patch (compressed fs) at:

http://www.willystudios.com/freesbie/FreeSBIE-cloop-test.iso.bz2

 I haven't exact numbers to explain the perfomance growth, but it's
really _very_ fast compared to "normal" version. As filename said, this
is a test version, then any feedback is appreciated. 

Bye,
Dario

- -- 
Dario Freni ([EMAIL PROTECTED]) - SaturNero on IRCNet, Azzurra
Gruppo Utenti FreeBSD Italia (http://www.gufi.org)
GPG Public key at http://www.saturnero.net/saturnero.asc
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.2 (FreeBSD)

iD8DBQFAEdU3Z1XqWj1OqUERAsONAKDAMP7L/UIJYwC6r+SSuoA+tqt28gCcDstb
nrcFjHFrhvQzuvFZguJcUk4=
=OCPC
-END PGP SIGNATURE-
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: read-only compressed fs (call for testers) [UPDATE]

2004-01-22 Thread Dario Freni
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

In article <[EMAIL PROTECTED]> you wrote:
>> Any feedback is highly appreciated.

A FreeSBIE developer has successfully made an ISO image with 
/usr/X11R6 and /usr/local mounted via cloop. If you are
interested, I can inform you when that iso is public.

I'm personally very curious about performance growth :)

Thank you by the FreeSBIE team.

Bye,
Dario

- -- 
Dario Freni ([EMAIL PROTECTED]) - SaturNero on IRCNet, Azzurra
Gruppo Utenti FreeBSD Italia (http://www.gufi.org)
GPG Public key at http://www.saturnero.net/saturnero.asc
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.2 (FreeBSD)

iD8DBQFADrtGZ1XqWj1OqUERAhSFAJwMTm8jM1YGNQkk3ae53wLE6FtElwCg1CGI
pBU5Kjj4ReTkXKuZZL2uJRc=
=lVnp
-END PGP SIGNATURE-
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Fw: Epson Stylus CX5200 printer/scanner

2003-09-20 Thread Dario Freni
I haven't got any answer on -multimedia :/

Can anybody help me?

Thanks in advance,
Dario



Begin forwarded message:

Date: Fri, 19 Sep 2003 00:10:35 +0200
From: Dario Freni <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Epson Stylus CX5200 printer/scanner


Hi guys,

I've recently bought a multifunctional Epson CX5200. It has an usb interface, the 
printer engine is identical to C82, the scanner engine is the typical Perfection 
1200's one.

I want to use both features :) With usb stuff compiled statically in kernel, the 
device is correctly recognized as:

ulpt0: EPSON USB MFP, rev 1.10/1.00, addr 2, iclass 7/1
ulpt0: using bi-directional mode

and works perfectly with its gimp-print driver. 

In order to make the scanner work, I made the simple patch in attachment, and removed 
the usb support from kernel.

Using modules, and loading uscanner module, the device is correctly recognized and 
works perfectly under xsane.

With both modules, it is recognized only as uscanner0. To have the ulpt0 device back, 
I've to unload uscanner, load ulpt, and reattach the device.

Is there any workaround to use _BOTH_ drivers simultaneously, this procedure is quite 
annoying :(

Thanks in advance for any kind of help.

Bye,
Dario

P.S.: please cc: me :)

-- 
Dario Freni ([EMAIL PROTECTED]) - SaturNero on IRCNet, Azzurra
Gruppo Utenti FreeBSD Italia (http://www.gufi.org)
GPG Public key at http://www.saturnero.net/saturnero.asc


cx5200.patch
Description: Binary data


pgp0.pgp
Description: PGP signature


Re: FreeSBIE-0.9.0 (beta) released

2003-02-15 Thread Dario Freni
Il Sat, 2003-02-15 alle 23:04, Kris Kennaway ha scritto:
> It might generate more enthusiasm for testing if you could briefly
> mention what FreeSBIE does.
You're right :) Sorry for that.
From www.freesbie.org site:

---8<
What is FreeSBIE? Simply: a live system on CD, or an operating system
that is able to load directly from a bootable CD, without any
installation process, without any hard disk. It's based on the FreeBSD
operating system.

FreeSBIE project goals are mainly two:
- To develop a suite of programs to be used to create your own CD, with
all the personalizations you like
- To make various ISO images available, maybe each one with its
different goals and possible uses.
---8<

If you would try the toolkit scripts I suggest you to download them from
cvs. More instruction on the site.

Cheers,
Dario

-- 
Dario Freni ([EMAIL PROTECTED]) - SaturNero on IRCNet, Azzurra
Gruppo Utenti FreeBSD Italia (http://www.gufi.org)
GPG Public key at http://www.saturnero.net/saturnero.asc



signature.asc
Description: Questa parte del messaggio `e firmata


FreeSBIE-0.9.0 (beta) released

2003-02-15 Thread Dario Freni
Fire up your download managers guys, I'm proud to announce that freesbie
0.9.0 livecd is out and ready for download at 

http://www.freesbie.org/?section=ISO-en

This brand new ISO has a beta support for the new init engine of 5.x
FreeBSD branch, and many improvements in floppy backup and restore, hard
disk autodetection. As this is a beta test, and we need more auditing
and test and patches and many other things ;), if you encounter problems
please contact us and tell us the description of your problem, with you
dmesg and as much debug information as you can.

We really need your help.

Thanks for attention :)
Bye,
Dario

-- 
Dario Freni ([EMAIL PROTECTED]) - SaturNero on IRCNet, Azzurra
Gruppo Utenti FreeBSD Italia (http://www.gufi.org)
GPG Public key at http://www.saturnero.net/saturnero.asc



signature.asc
Description: Questa parte del messaggio `e firmata