[PATCH] Volume serial number

Jeremy Allison jra at samba.org
Mon Nov 7 20:04:49 GMT 2005

On Mon, Nov 07, 2005 at 03:06:06PM -0500, Alexander Bokovoy wrote:
> On Mon, Nov 07, 2005 at 11:00:47AM -0800, Jeremy Allison wrote:
> > > > This is a really simple patch for Samba3 so I'm inclined to
> > > > just add it in. I can't see any possible conflicts with Samba4.
> > > We do it differently so it is not good to have different behaviour.
> > 
> > Well Samba3 has been generating these volume-id's using a hash
> > on the name for a long time. Samba4 uses the ino from the directory
> > containing the share. It doesn't use a uuid. We're not talking
> > about the same thing. Samba4 uses uuids in RAW_QFS_OBJECTID_INFORMATION:
> > which in Samba3 is returned as zero.
> Yes, that's correct -- I've been wrong and actually mixed them up. Does it
> make sense to unify the code for both paths and:
> 	- return hash of uuid or smb.conf-set value for volume-id
> 	- return uuid or smb.conf-set value for object-id

We can't change the volumeid calculation on Samba3 as there
may be software out there that is using the volumeid to
determine if it was installed there (that's why the person
wanted to be able to manually set it). If we change it now
people's installed software will break.

The object-id stuff is fair game as it's not returned in
Samba3 right now.


More information about the samba-technical mailing list