[wplug-bsd] Patching a driver
Brandon Kuczenski
brandon at 301south.net
Mon Oct 16 18:48:19 EDT 2006
I'm working with samba at work and came across the following bug:
https://bugzilla.samba.org/show_bug.cgi?id=2794
in a somewhat unpleasant way. It seems the samba people think that
FreeBSD's ntfs driver is broken, and misreports the number of hard links
for files on ntfs filesystems.
It looks like there is a simple one-line hack of a patch, to
sys/fs/ntfs/ntfs_vnops.c, which is explained in the comments to the bug:
before:
vap->va_nlink = ip->i_nlink;
after:
vap->va_nlink = (ip->i_nlink ? ip->i_nlink : 1);
My question: what is the 'BSD' way to implement this patch and install the
patched driver, if possible without rebuilding the kernel?
Thanks,
Brandon
More information about the wplug-bsd
mailing list