NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: bin/45191: newfs_v7fs(8) doesn't work on a disk partition



The following reply was made to PR bin/45191; it has been noted by GNATS.

From: UCHIYAMA Yasushi <uch%vnop.net@localhost>
To: tron%zhadum.org.uk@localhost
Cc: gnats-bugs%NetBSD.org@localhost
Subject: Re: bin/45191: newfs_v7fs(8) doesn't work on a disk partition
Date: Tue, 02 Aug 2011 20:15:52 +0900 (JST)

 From: Matthias Scheler <tron%zhadum.org.uk@localhost>
 Subject: Re: bin/45191: newfs_v7fs(8) doesn't work on a disk partition
 Date: Tue, 2 Aug 2011 11:22:00 +0100
 
 > On Mon, Aug 01, 2011 at 06:25:02AM +0000, David Holland wrote:
 > > The following reply was made to PR bin/45191; it has been noted by GNATS.
 > > 
 > > From: David Holland <dholland-bugs%netbsd.org@localhost>
 > > To: gnats-bugs%NetBSD.org@localhost
 > > Cc: 
 > > Subject: Re: bin/45191: newfs_v7fs(8) doesn't work on a disk partition
 > > Date: Mon, 1 Aug 2011 06:20:04 +0000
 > > 
 > >  On Sat, Jul 30, 2011 at 11:30:01AM +0000, tron%zhadum.org.uk@localhost 
 > > wrote:
 > >   > tron@lyssa:~#newfs_v7fs /dev/rwd1e
 > >   > newfs_v7fs: mmap failed. use direct I/O.: Invalid argument
 > >   > newfs_v7fs: sector=1
 > >   > : Read-only file system
 > >   > newfs_v7fs: Can't write back superblock.: Input/output error
 > >   > newfs_v7fs: Input/output error
 > >  
 > >  Is this because it's a partition or because it's too big to mmap?
 > >  (Does a 512M partition work?)
 > 
 > It works with a 46.4MB partition:
 > 
 >      tron@lyssa:~tron#newfs_v7fs /dev/rwd0e
 >      newfs_v7fs: mmap failed. use direct I/O.: Invalid argument
 > 
 > I can mount the resulting file-system and write files to it.
 > 
 > >  Of course, mmap'ing disk images is kind of silly...
 > 
 > I would call it optimistic. :-)
 > 
 >      Kind regards
 > 
 > -- 
 > Matthias Scheler                                  http://zhadum.org.uk/
 > 
 
 16 partitions:
 #        size    offset     fstype [fsize bsize cpg/sgs]
  c:   8388545        63     unused      0     0        # (Cyl.      0*-   
8322*)
  d:   8388608         0     unused      0     0        # (Cyl.      0 -   
8322*)
  e:   8388545        63  Version 7                     # (Cyl.      0*-   
8322*)
 
 disklabel location is LABELSECTOR(it is 1) of c-partition. and v7fs
 superblock sector is 1.  so conflicts.
 
 16 partitions:
 #        size    offset     fstype [fsize bsize cpg/sgs]
  c:   8388545        63     unused      0     0        # (Cyl.      0*-   
8322*)
  d:   8388608         0     unused      0     0        # (Cyl.      0 -   
8322*)
  e:   8388543        65  Version 7
 
 Should work. Some warning message should add to newfs_v7fs..
 
 Remove mmap routines?
 


Home | Main Index | Thread Index | Old Index